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

21 lines
482 B
PHP
Raw Normal View History

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