Manual:Hooks/TitleIsCssOrJsPage

From MediaWiki.org
Jump to: navigation, search
TitleIsCssOrJsPage
Available from version 1.19.0 (r93759)
Called when determining if a page is a CSS or JS page.

Define function:
public static function onTitleIsCssOrJsPage( $title, &$result ) { ... }

Attach hook:
$wgHooks['TitleIsCssOrJsPage'][] = 'MyExtensionHooks::onTitleIsCssOrJsPage';
Called from: Title.php

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


[edit] Details

  • $title: Title object that is being checked
  • &$result: Boolean; whether MediaWiki currently thinks this is a CSS/JS page. Hooks may change this value to override the return value of Title::isCssOrJsPage()
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox