Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750370
JsonValidateSaveHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
940 B
Referenced Files
None
Subscribers
None
JsonValidateSaveHook.php
View Options
<?php
namespace
MediaWiki\Content\Hook
;
use
MediaWiki\Content\JsonContent
;
use
MediaWiki\Page\PageIdentity
;
use
StatusValue
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "JsonValidateSaveHook" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
JsonValidateSaveHook
{
/**
* Use this hook to add additional validations for JSON content pages.
* This hook is only called if JSON syntax validity and other contentmodel-specific validations
* are passing.
*
* @since 1.39
*
* @param JsonContent $content
* @param PageIdentity $pageIdentity
* @param StatusValue $status Fatal errors only would trigger validation failure as $status is checked with isOK()
* @return bool|void True or no return value to continue
*/
public
function
onJsonValidateSave
(
JsonContent
$content
,
PageIdentity
$pageIdentity
,
StatusValue
$status
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 16:22 (5 h, 19 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/87/c83034e01c566c746adc15e5f198
Default Alt Text
JsonValidateSaveHook.php (940 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment