Manual:Hooks/AfterBuildFeedLinks
From Linux Web Expert
AfterBuildFeedLinks | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Use this hook to remove feed links from the head of the output. | |
<translate> Define function:</translate> | public static function onAfterBuildFeedLinks( &$feedLinks ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"AfterBuildFeedLinks": "MediaWiki\\Extension\\MyExtension\\Hooks::onAfterBuildFeedLinks"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> OutputPage.php |
<translate> Interface:</translate> | AfterBuildFeedLinksHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:AfterBuildFeedLinks extensions</tvar>.</translate>
Details
- $feedLinks: Added feed links to be outputted. You can remove them using unset(), and it's possible to add additional feed links. However, you should use the
OutputPage::addFeedLink()
method, instead.