Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 38% complete.
Other languages:
English • ‎Türkçe • ‎español • ‎français • ‎magyar • ‎polski • ‎中文 • ‎日本語
Content handlers and storage: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
Introducido en la versión:1.21.0
Eliminado en la versión:aún se usa
Valores permitidos:(uno de los parámetros permitidos)
Valor predeterminado:'ignore'

Parámetros permitidos

Depending on the value, the following action is taken when Content is not a TextContent object:

  • 'ignore' - ContentHandler::getContentText() returns null
  • 'fail' - Throw an MWException
  • 'serialize' - Use the Content objects serialize method to get a string