Manual:$wgContentHandlerTextFallback/zh

From Linux Web Expert

<translate> Content handlers and storage</translate>: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
<translate> Introduced in version:</translate>1.21.0
<translate> Deprecated in version:</translate>1.37.0 (Gerrit change 691704; git #e34e93f2)
<translate> Removed in version:</translate>1.42.0 (Gerrit change 993049; git #ba1563a0)
<translate> Allowed values:</translate>(允许的参数之一)
<translate> Default value:</translate>'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