MediaWiki
master
PlaceNewSectionHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Content\Hook
;
4
5
use
MediaWiki\Content\Content
;
6
use
MediaWiki\Page\WikiPage
;
7
15
interface
PlaceNewSectionHook
{
29
public
function
onPlaceNewSection
( $content, $oldtext, $subject, &$text );
30
}
MediaWiki\Page\WikiPage
Base representation for an editable wiki page.
Definition
WikiPage.php:93
MediaWiki\Content\Content
Content objects represent page content, e.g.
Definition
Content.php:42
MediaWiki\Content\Hook\PlaceNewSectionHook
This is a hook handler interface, see docs/Hooks.md.
Definition
PlaceNewSectionHook.php:15
MediaWiki\Content\Hook\PlaceNewSectionHook\onPlaceNewSection
onPlaceNewSection( $content, $oldtext, $subject, &$text)
Use this hook to override placement of new sections.
MediaWiki\Content\Hook
Definition
ContentAlterParserOutputHook.php:3
includes
content
Hook
PlaceNewSectionHook.php
Generated on Sun Apr 27 2025 20:23:57 for MediaWiki by
1.10.0