Manual:Hooks/BookInformation
Appearance
BookInformation | |
---|---|
Available from version 1.9.1 Hook to allow extensions to insert additional HTML to a list of book sources e.g. for API-interacting plugins and so on | |
Define function: | public static function onBookInformation( $isbn, $out ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"BookInformation": "MediaWiki\\Extension\\MyExtension\\Hooks::onBookInformation"
}
}
|
Called from: | File(s): specials/SpecialBookSources.php |
Interface: | BookInformationHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:BookInformation extensions.
Details
[edit]- $isbn - the w:ISBN of the book to be displayed.
- $out - The OutputPage object.