Open main menu

Manual:$wgContentHandlerTextFallback


Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Output: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
Introduced in version:1.21.0
Removed in version:still in use
Allowed values:(one of the allowed parameters)
Default value:'ignore'
Other settings: Alphabetical | By function

Allowed parametersEdit

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