wikimedia/mediawiki-core

View on GitHub
includes/Hook/ProtectionFormAddFormFieldsHook.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace MediaWiki\Hook;

use Article;

/**
 * @stable to implement
 * @ingroup Hooks
 */
interface ProtectionFormAddFormFieldsHook {
    /**
     * This hook is called after all protection type form fields are added.
     *
     * @since 1.36
     *
     * @param Article $article Title being (un)protected
     * @param array &$hookFormOptions An array to add form fields to
     * @return bool|void True or no return value to continue or false to abort
     */
    public function onProtectionFormAddFormFields( $article, &$hookFormOptions );
}