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

19 lines
441 B
PHP
Raw Normal View History

<?php
declare( strict_types=1 );
namespace TabberNeue;
use Parser;
class Hooks {
/**
* Sets up this extension's parser functions.
*
* @param Parser $parser Parser object passed as a reference.
*/
public static function onParserFirstCallInit( Parser $parser ) {
$parser->setHook( 'tabber', Tabber::class . '::renderTabber' );
$parser->setHook( 'tabbertransclude', TabberTransclude::class . '::renderTabberTransclude' );
}
}