MediaWiki master
IncludableSpecialPage.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\SpecialPage;
25
32 public function __construct(
33 $name, $restriction = '', $listed = true, $function = false, $file = 'default'
34 ) {
35 parent::__construct( $name, $restriction, $listed, $function, $file, true );
36 }
37
38 public function isIncludable() {
39 return true;
40 }
41}
42
44class_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.