Manual:Hooks/MathMLChanged
From Linux Web Expert
MathMLChanged | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 117840)</tvar></translate> Is called before the MathML property is changed can be used e.g. for compression, normalization or introduction of custom hyperlinks etc. | |
<translate> Define function:</translate> | public static function onMathMLChanged( &$this , &$mathml ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"MathMLChanged": "MediaWiki\\Extension\\MyExtension\\Hooks::onMathMLChanged"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> |
<translate> Interface:</translate> | MathMLChangedHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:MathMLChanged extensions</tvar>.</translate>