MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onJsonValidateSave (JsonContent $content, PageIdentity $pageIdentity, StatusValue $status) | |
Use this hook to add additional validations for JSON content pages. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "JsonValidateSaveHook" to register handlers implementing this interface.
Definition at line 16 of file JsonValidateSaveHook.php.
MediaWiki\Content\Hook\JsonValidateSaveHook::onJsonValidateSave | ( | JsonContent | $content, |
PageIdentity | $pageIdentity, | ||
StatusValue | $status ) |
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.
JsonContent | $content | |
PageIdentity | $pageIdentity | |
StatusValue | $status | Fatal errors only would trigger validation failure as $status is checked with isOK() |
Implemented in MediaWiki\HookContainer\HookRunner.