*
* @param Title $title Context title for parsing
* @param int|null $revId Revision ID (for {{REVISIONID}})
*
* @param Title $title Context title for parsing
* @param int|null $revId Revision ID (for {{REVISIONID}})
* @param bool $generateHtml Whether or not to generate HTML
*
* @return ParserOutput Containing information derived from this content.
* @param bool $generateHtml Whether or not to generate HTML
*
* @return ParserOutput Containing information derived from this content.
$po = new ParserOutput();
if ( Hooks::run( 'ContentGetParserOutput',
$po = new ParserOutput();
if ( Hooks::run( 'ContentGetParserOutput',
- [ $this, $title, $revId, $options, $generateHtml, &$po ] ) ) {
-
+ [ $this, $title, $revId, $options, $generateHtml, &$po ] )
+ ) {
// Save and restore the old value, just in case something is reusing
// the ParserOptions object in some weird way.
$oldRedir = $options->getRedirectTarget();
// Save and restore the old value, just in case something is reusing
// the ParserOptions object in some weird way.
$oldRedir = $options->getRedirectTarget();
*
* @param Title $title Context title for parsing
* @param int|null $revId Revision ID (for {{REVISIONID}})
*
* @param Title $title Context title for parsing
* @param int|null $revId Revision ID (for {{REVISIONID}})
* @param bool $generateHtml Whether or not to generate HTML
* @param ParserOutput &$output The output object to fill (reference).
*
* @param bool $generateHtml Whether or not to generate HTML
* @param ParserOutput &$output The output object to fill (reference).
*