MediaWiki
REL1_40
JsonValidateSaveHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Content\Hook
;
4
5
use
JsonContent
;
6
use
MediaWiki\Page\PageIdentity
;
7
use
StatusValue
;
8
16
interface
JsonValidateSaveHook
{
29
public
function
onJsonValidateSave
(
JsonContent
$content
,
PageIdentity
$pageIdentity,
StatusValue
$status );
30
}
JsonContent
JSON text content that can be viewed and edit directly by users.
Definition
JsonContent.php:21
StatusValue
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition
StatusValue.php:46
MediaWiki\Content\Hook\JsonValidateSaveHook
This is a hook handler interface, see docs/Hooks.md.
Definition
JsonValidateSaveHook.php:16
MediaWiki\Content\Hook\JsonValidateSaveHook\onJsonValidateSave
onJsonValidateSave(JsonContent $content, PageIdentity $pageIdentity, StatusValue $status)
Use this hook to add additional validations for JSON content pages.
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:65
MediaWiki\Content\Hook
Definition
ContentAlterParserOutputHook.php:3
$content
$content
Definition
router.php:76
includes
content
Hook
JsonValidateSaveHook.php
Generated on Thu Jun 27 2024 14:02:32 for MediaWiki by
1.10.0