Wikibase
MediaWiki Wikibase extension
|
Class to run the MediaWiki EditFilterMergedContent hook. More...
Public Member Functions | |
__construct (EntityNamespaceLookup $namespaceLookup, EntityTitleStoreLookup $titleLookup, EntityContentFactory $entityContentFactory, HookContainer $hookContainer) | |
run ( $new, IContextSource $context, string $summary) | |
Call EditFilterMergedContent hook, if registered. | |
Private Member Functions | |
getContextForEditFilter (IContextSource $context, ?EntityId $entityId, string $entityType) | |
Private Attributes | |
$namespaceLookup | |
$titleLookup | |
$entityContentFactory | |
$hookContainer | |
Class to run the MediaWiki EditFilterMergedContent hook.
Wikibase\Repo\EditEntity\MediaWikiEditFilterHookRunner::__construct | ( | EntityNamespaceLookup | $namespaceLookup, |
EntityTitleStoreLookup | $titleLookup, | ||
EntityContentFactory | $entityContentFactory, | ||
HookContainer | $hookContainer ) |
|
private |
Wikibase\Repo\EditEntity\MediaWikiEditFilterHookRunner::run | ( | $new, | |
IContextSource | $context, | ||
string | $summary ) |
Call EditFilterMergedContent hook, if registered.
EntityDocument | EntityRedirect | EntityContent | null | $new | The entity or redirect (content) we are trying to save |
IContextSource | $context | The request context for the edit |
string | $summary | The edit summary |
RuntimeException | |
InvalidArgumentException |
Implements Wikibase\Repo\EditEntity\EditFilterHookRunner.
|
private |
|
private |
|
private |
|
private |