Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Loading...
Searching...
No Matches
MediaWiki\Skins\Vector\ConfigHelper Class Reference

@stable for use inside Minerva as a soft dependency temporarily until T360452 is resolved. More...

Static Public Member Functions

static shouldDisable (array $options, WebRequest $request, ?Title $title=null)
 Determine whether the configuration should be disabled on the page.
 

Detailed Description

@stable for use inside Minerva as a soft dependency temporarily until T360452 is resolved.

See also
doc/adr/0004-code-sharing-between-vector-and-minerva.md

Member Function Documentation

◆ shouldDisable()

static MediaWiki\Skins\Vector\ConfigHelper::shouldDisable ( array $options,
WebRequest $request,
?Title $title = null )
static

Determine whether the configuration should be disabled on the page.

Parameters
array$optionsread from MediaWiki configuration. $params = [ 'exclude' => [ 'mainpage' => (bool) should it be disabled on the main page? 'namespaces' => int[] namespaces it should be excluded on. 'querystring' => array of strings mapping to regex for patterns the query strings it should be excluded on e.g. [ 'action' => '*' ] disable on all actions 'pagetitles' => string[] of pages it should be excluded on. For special pages, use canonical English name. ] ]
WebRequest$request
Title | null$title
Returns
bool

The documentation for this class was generated from the following file: