Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4062742
ArticleFromTitleHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
815 B
Referenced Files
None
Subscribers
None
ArticleFromTitleHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\Page\Article
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ArticleFromTitle" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ArticleFromTitleHook
{
/**
* This hook is called when creating an article object from a title object using
* Wiki::articleFromTitle().
*
* @since 1.35
*
* @param Title $title Title used to create the article object
* @param Article &$article Article that will be returned
* @param IContextSource $context
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onArticleFromTitle
(
$title
,
&
$article
,
$context
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 11:21 (12 w, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
51/c4/6f3b398b6065a696d1803959019d
Default Alt Text
ArticleFromTitleHook.php (815 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment