mediawiki-extensions-Tabber.../includes/Hooks.php
github-actions 4a662d3f27 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-04-20 17:13:25 +00:00

20 lines
440 B
PHP

<?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', TabberNeue::class . '::renderTabber' );
$parser->setHook( 'tabbertransclude', TabberNeue::class . '::renderTabberTransclude' );
}
}