Page MenuHomeWickedGov Phorge

TemplateStylesPropertySanitizerHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

TemplateStylesPropertySanitizerHook.php

<?php
namespace MediaWiki\Extension\TemplateStyles\Hooks;
use Wikimedia\CSS\Grammar\MatcherFactory;
use Wikimedia\CSS\Sanitizer\StylePropertySanitizer;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "TemplateStylesPropertySanitizer" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface TemplateStylesPropertySanitizerHook {
/**
* Allows for adjusting or replacing the StylePropertySanitizer used when sanitizing style rules.
* For example, you might add, remove, or redefine known properties
*
* @param StylePropertySanitizer &$propertySanitizer StylePropertySanitizer to be used for sanitization
* @param MatcherFactory $matcherFactory MatcherFactory being used, for use in adding or redefining known
* properties or replacing the entire sanitizer
* @return bool|void True or no return value to continue or false to abort
*/
public function onTemplateStylesPropertySanitizer(
StylePropertySanitizer &$propertySanitizer,
MatcherFactory $matcherFactory
);
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 20:27 (7 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f7/d6/2c1d7ffc13f9d2bde2de77ddf302
Default Alt Text
TemplateStylesPropertySanitizerHook.php (1 KB)

Event Timeline