Debian Codegraph @

includes/Output/Hook/AfterBuildFeedLinksHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Output\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "AfterBuildFeedLinks" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12 interface AfterBuildFeedLinksHook {
13 /**
14 * This hook is called in OutputPage.php after all feed links (atom,
15 * rss,...) are created. Use this hook to omit specific feeds from being outputted.
16 * You must not use this hook to add feeds; use OutputPage::addFeedLink() instead.
17 *
18 * @since 1.35
19 *
20 * @param string[] &$feedLinks Array of created feed links
21 * @return bool|void True or no return value to continue or false to abort
22 */
23 public function onAfterBuildFeedLinks( &$feedLinks );
24 }
25
26 /** @deprecated class alias since 1.42 */
27 class_alias( AfterBuildFeedLinksHook::class, 'MediaWiki\Hook\AfterBuildFeedLinksHook' );