Jump to content

Handbuch:$wgContentHandlerTextFallback

From mediawiki.org
This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 38% complete.
Inhalts-Handler und Speicher: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
Eingeführt in Version:1.21.0
Veraltet in Version:1.37.0 (Gerrit change 691704; git #e34e93f2)
Entfernt in Version:1.42.0 (Gerrit change 993049; git #ba1563a0)
Erlaubte Werte:(einer der erlaubten Parameter)
Standardwert:'ignore'

Erlaubte Parameter

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