Page MenuHomeWickedGov Phorge

SkinEditSectionLinksHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

SkinEditSectionLinksHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Language\Language;
use MediaWiki\Title\Title;
use Skin;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SkinEditSectionLinks" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SkinEditSectionLinksHook {
/**
* Use this hook to modify section edit links.
*
* @since 1.35
*
* @param Skin $skin Skin object rendering the UI
* @param Title $title Title being linked to (may not be the same as the page title,
* if the section is included from a template)
* @param string $section Designation of the section being pointed to, to be included in
* the link, like "&section=$section"
* @param string $sectionTitle Section title, used in the default tooltip. Escape before using.
* By default, this is wrapped in the 'editsectionhint' message.
* @param array &$result Array containing all link detail arrays. Each link detail array should
* contain the following keys:
* - `targetTitle`: Target Title object
* - `text`: String for the text
* - `attribs`: Array of attributes
* - `query`: Array of query parameters to add to the URL
* @param Language $lang Language to use for the link in the wfMessage function
* @return bool|void True or no return value to continue or false to abort
*/
public function onSkinEditSectionLinks( $skin, $title, $section, $sectionTitle,
&$result, $lang
);
}

File Metadata

Mime Type
text/x-php
Expires
Oct 6 2026, 07:55 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e6/fb/3964d603d8523d7589e167814e35
Default Alt Text
SkinEditSectionLinksHook.php (1 KB)

Event Timeline