Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426467
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, 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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment