wikimedia/mediawiki-core

View on GitHub
includes/Hook/EditPageNoSuchSectionHook.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace MediaWiki\Hook;

use MediaWiki\EditPage\EditPage;

/**
 * This is a hook handler interface, see docs/Hooks.md.
 * Use the hook name "EditPageNoSuchSection" to register handlers implementing this interface.
 *
 * @stable to implement
 * @ingroup Hooks
 */
interface EditPageNoSuchSectionHook {
    /**
     * This hook is called when a section edit request is given for a non-existent section.
     *
     * @since 1.35
     *
     * @param EditPage $editpage Current EditPage object
     * @param string &$res HTML of the error text
     * @return bool|void True or no return value to continue or false to abort
     */
    public function onEditPageNoSuchSection( $editpage, &$res );
}