Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4076720
PlaceNewSectionHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
932 B
Referenced Files
None
Subscribers
None
PlaceNewSectionHook.php
View Options
<?php
namespace
MediaWiki\Content\Hook
;
use
MediaWiki\Content\Content
;
use
MediaWiki\Page\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
Details
Attached
Mime Type
text/x-php
Expires
Aug 17 2026, 21:27 (9 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/f9/4f8fe638bc671357d624c9c842be
Default Alt Text
PlaceNewSectionHook.php (932 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment