gplx/mediawiki/includes/skins/Hook/SkinAddFooterLinksHook.php

31 lines
911 B
PHP

<?php
namespace MediaWiki\Hook;
use Skin;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SkinAddFooterLinks" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SkinAddFooterLinksHook {
/**
* This hook is called when generating the code used to display the
* footer.
*
* @since 1.35
*
* @param Skin $skin
* @param string $key the current key for the current group (row) of footer links.
* e.g. `info` or `places`.
* @param array &$footerItems an empty array that can be populated with new links.
* keys should be strings and will be used for generating the ID of the footer item
* and value should be an HTML string.
* @return bool|void True or no return value to continue or false to abort
*/
public function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerItems );
}