MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Skins\FeaturesHelper Class Reference

Public Member Functions

 shouldDisableNightMode (array $options, WebRequest $request, ?Title $title=null)
 Per the $options configuration (for use with $wgMinervaNightModeOptions) determine whether Night Mode should be disabled on the page.
 

Member Function Documentation

◆ shouldDisableNightMode()

MediaWiki\Minerva\Skins\FeaturesHelper::shouldDisableNightMode ( array $options,
WebRequest $request,
?Title $title = null )

Per the $options configuration (for use with $wgMinervaNightModeOptions) determine whether Night Mode should be disabled on the page.

For the main page: Check the value of $options['exclude']['mainpage'] Night Mode is disabled if: 1) The current namespace is listed in array $options['exclude']['namespaces'] OR 2) A query string parameter matches one of the regex patterns in $exclusions['querystring']. OR 3) The canonical title matches one of the titles in $options['exclude']['pagetitles'] For this functionality to work the Vector skin MUST be installed.

Parameters
array$options
WebRequest$request
Title | null$title
Returns
bool

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