MediaWiki master
IncludableSpecialPage.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\SpecialPage;
22
29 public function __construct(
30 $name, $restriction = '', $listed = true, $function = false, $file = 'default'
31 ) {
32 parent::__construct( $name, $restriction, $listed, $function, $file, true );
33 }
34
35 public function isIncludable() {
36 return true;
37 }
38}
39
41class_alias( IncludableSpecialPage::class, 'IncludableSpecialPage' );
Shortcut to construct an includable special page.
__construct( $name, $restriction='', $listed=true, $function=false, $file='default')
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Parent class for all special pages.