Extension:WikiSEO/Hooks/WikiSEOLuaPreAddPageProps
WikiSEOLuaPreAddPageProps | |
---|---|
Available from version 2.6.3 (Gerrit change 656107) Allows for adjusting or replacing metadata that is saved to the page props set by the lua module. |
|
Define function: | public static function onWikiSEOLuaPreAddPageProps( array &$metadata ) { ... }
|
Attach hook: | $wgHooks['WikiSEOLuaPreAddPageProps'][] = 'MyExtensionHooks::onWikiSEOLuaPreAddPageProps';
|
Called from: | File(s): WikiSEO / includes/SeoLua.php Function(s): set |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:WikiSEOLuaPreAddPageProps extensions.
Parameters
edit- &$metadata
- An array of key-value pairs validated through
Validator::validateParams