MediaWiki master
SpecialProtectPage.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Specials;
8
11
20
21 public function __construct(
22 SearchEngineFactory $searchEngineFactory
23 ) {
24 parent::__construct( 'ProtectPage', 'protect', 'protectpage', $searchEngineFactory );
25 }
26
27 // Messages, for grep:
28 // specialprotectpage-page
29 // specialprotectpage-submit
30}
31
36class_alias( SpecialProtectPage::class, 'SpecialProtectPage' );
Abstract to simplify creation of redirect special pages.
Redirect from Special:ProtectPage/$1 to index.php?title=$1&action=protect.
__construct(SearchEngineFactory $searchEngineFactory)
Factory class for SearchEngine.