Open main menu

手册:$wgContentHandlerTextFallback

This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 38% complete.
Other languages:
English • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
输出: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
引进版本:1.21.0
移除版本:仍在使用
允许的值:(允许的参数之一)
默认值:'ignore'

允许的参数

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