Jump to content

Extension:TemplateStyles/Hooks/TemplateStylesPropertySanitizer

From mediawiki.org
TemplateStylesPropertySanitizer
Available from version ???
Allows for adjusting or replacing the StylePropertySanitizer used when sanitizing style rules. For example, you might add, remove, or redefine known properties.
Define function:
public static function onTemplateStylesPropertySanitizer( Wikimedia\CSS\Sanitizer\StylePropertySanitizer &$propertySanitizer, Wikimedia\CSS\Grammar\MatcherFactory $matcherFactory ) { ... }
Attach hook:
$wgHooks['TemplateStylesPropertySanitizer'][] = 'MyExtensionHooks::onTemplateStylesPropertySanitizer';
Called from:File(s): TemplateStyles / includes/TemplateStylesHooks.php
Function(s): getSanitizer

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:TemplateStylesPropertySanitizer extensions.

Parameters

[edit]
&$propertySanitizer
Wikimedia\CSS\Sanitizer\StylePropertySanitizer to be used for sanitization.
$matcherFactory
Wikimedia\CSS\Grammar\MatcherFactory being used, for use in adding or redefining known properties or replacing the entire sanitizer.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy