Page MenuHomeWickedGov Phorge

JsonValidateSaveHook.php
No OneTemporary

Size
940 B
Referenced Files
None
Subscribers
None

JsonValidateSaveHook.php

<?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

Mime Type
text/x-php
Expires
Fri, Jul 3, 16:22 (6 h, 26 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/87/c83034e01c566c746adc15e5f198
Default Alt Text
JsonValidateSaveHook.php (940 B)

Event Timeline