Page MenuHomeWickedGov Phorge

PlaceNewSectionHook.php
No OneTemporary

Size
917 B
Referenced Files
None
Subscribers
None

PlaceNewSectionHook.php

<?php
namespace MediaWiki\Content\Hook;
use MediaWiki\Content\Content;
use WikiPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PlaceNewSection" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface PlaceNewSectionHook {
/**
* Use this hook to override placement of new sections.
*
* @since 1.35
*
* @param WikiPage|Content $content Formerly a WikiPage, but accidentally a
* Content object since approximately 1.21
* @param string $oldtext Text of the article before editing
* @param string $subject Subject of the new section
* @param string &$text Text of the new section
* @return bool|void True or no return value to continue, or false and put the
* merged text into $text to override the default behavior
*/
public function onPlaceNewSection( $content, $oldtext, $subject, &$text );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 18:27 (19 h, 49 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d4/e5/b3e6fb15f5b9d388f225ec088a26
Default Alt Text
PlaceNewSectionHook.php (917 B)

Event Timeline