Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5970835
AdminLinksHooks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
AdminLinksHooks.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 14:45 (18 h, 14 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/bc/b3a16c6506e37927cd34d0cbe718
Default Alt Text
AdminLinksHooks.php (736 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment