Page MenuHomeWickedGov Phorge

AdminLinksHooks.php
No OneTemporary

Size
736 B
Referenced Files
None
Subscribers
None

AdminLinksHooks.php

<?php
namespace MediaWiki\Extension\ReplaceText;
use AdminLinksHook;
use ALItem;
use ALRow;
use ALTree;
class AdminLinksHooks implements AdminLinksHook {
/**
* Implements AdminLinks hook from Extension:Admin_Links.
*
* @param ALTree &$adminLinksTree
*/
public function onAdminLinks( ALTree &$adminLinksTree ) {
$generalSection = $adminLinksTree->getSection( wfMessage( 'adminlinks_general' )->text() );
if ( !$generalSection ) {
return;
}
$extensionsRow = $generalSection->getRow( 'extensions' );
if ( $extensionsRow === null ) {
$extensionsRow = new ALRow( 'extensions' );
$generalSection->addRow( $extensionsRow );
}
$extensionsRow->addItem( ALItem::newFromSpecialPage( 'ReplaceText' ) );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 13:16 (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8d/7b/91dddbafe8cb86388f97536e0095
Default Alt Text
AdminLinksHooks.php (736 B)

Event Timeline