MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onPlaceNewSection ( $content, $oldtext, $subject, &$text) | |
Use this hook to override placement of new sections. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PlaceNewSection" to register handlers implementing this interface.
Definition at line 15 of file PlaceNewSectionHook.php.
MediaWiki\Content\Hook\PlaceNewSectionHook::onPlaceNewSection | ( | $content, | |
$oldtext, | |||
$subject, | |||
& | $text ) |
Use this hook to override placement of new sections.
WikiPage | Content | $content | Formerly a WikiPage, but accidentally a Content object since approximately 1.21 |
string | $oldtext | Text of the article before editing |
string | $subject | Subject of the new section |
string | &$text | Text of the new section |
Implemented in MediaWiki\HookContainer\HookRunner.