Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750650
ContentHandlerForModelIDHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
939 B
Referenced Files
None
Subscribers
None
ContentHandlerForModelIDHook.php
View Options
<?php
namespace
MediaWiki\Content\Hook
;
use
MediaWiki\Content\ContentHandler
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ContentHandlerForModelID" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ContentHandlerForModelIDHook
{
/**
* This hook is called when a ContentHandler is requested for a given content model name,
* but no entry for that model exists in $wgContentHandlers. Note: if your extension implements
* additional models via this hook, please use GetContentModels hook to make them known to core.
*
* @since 1.35
*
* @param string $modelName Requested content model name
* @param ContentHandler &$handler Set this to a ContentHandler object, if desired
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onContentHandlerForModelID
(
$modelName
,
&
$handler
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 16:52 (4 h, 34 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
96/77/7f35b54ab9b4531c945c70cb8ef1
Default Alt Text
ContentHandlerForModelIDHook.php (939 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment