Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431170
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
Sat, May 16, 20:09 (2 h, 49 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
59/fe/f0b9aaffb3b4ab07314647b595d9
Default Alt Text
ArticleFromTitleHook.php (815 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment