mediawiki-extensions-Tabber.../includes/Hooks.php

21 lines
482 B
PHP

<?php
declare( strict_types=1 );
namespace TabberNeue;
use MediaWiki\Hook\ParserFirstCallInitHook;
use Parser;
class Hooks implements ParserFirstCallInitHook {
/**
* @see https://www.mediawiki.org/wiki/Manual:Hooks/ParserFirstCallInit
*
* @param Parser $parser
*/
public function onParserFirstCallInit( $parser ) {
$parser->setHook( 'tabber', Tabber::class . '::parserHook' );
$parser->setHook( 'tabbertransclude', TabberTransclude::class . '::parserHook' );
}
}