Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5948958
ArticleFromTitleHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
800 B
Referenced Files
None
Subscribers
None
ArticleFromTitleHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
Article
;
use
MediaWiki\Context\IContextSource
;
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
Oct 2 2026, 22:37 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
66/14/2042b0d5b60e89dd7b648d068691
Default Alt Text
ArticleFromTitleHook.php (800 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment