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

A wrapper for all available Skin options. More...

Public Member Functions

 __construct (HookContainer $hookContainer, SkinUserPageHelper $skinUserPageHelper)
 
 setMultiple (array $options)
 override an existing option or options with new values
 
 get (string $key)
 Return whether a skin option is truthy.
 
 getAll ()
 Get all skin options.
 
 hasSkinOptions ()
 Return whether any of the skin options have been set.
 
 setMinervaSkinOptions (MobileContext $mobileContext, Skin $skin)
 Set the skin options for Minerva.
 

Public Attributes

const MOBILE_OPTIONS = 'mobileOptionsLink'
 
const CATEGORIES = 'categories'
 
const PAGE_ISSUES = 'pageIssues'
 
const BETA_MODE = 'beta'
 
const TALK_AT_TOP = 'talkAtTop'
 
const SHOW_DONATE = 'donate'
 
const HISTORY_IN_PAGE_ACTIONS = 'historyInPageActions'
 
const TOOLBAR_SUBMENU = 'overflowSubmenu'
 
const TABS_ON_SPECIALS = 'tabsOnSpecials'
 
const MAIN_MENU_EXPANDED = 'mainMenuExpanded'
 
const PERSONAL_MENU = 'personalMenu'
 
const SINGLE_ECHO_BUTTON = 'echo'
 
const NIGHT_MODE = 'nightMode'
 

Detailed Description

A wrapper for all available Skin options.

Member Function Documentation

◆ get()

MediaWiki\Minerva\SkinOptions::get ( string $key)

Return whether a skin option is truthy.

Should be one of self:* constants

Parameters
string$key
Returns
bool

◆ getAll()

MediaWiki\Minerva\SkinOptions::getAll ( )

Get all skin options.

Returns
array

◆ hasSkinOptions()

MediaWiki\Minerva\SkinOptions::hasSkinOptions ( )

Return whether any of the skin options have been set.

Returns
bool

◆ setMinervaSkinOptions()

MediaWiki\Minerva\SkinOptions::setMinervaSkinOptions ( MobileContext $mobileContext,
Skin $skin )

Set the skin options for Minerva.

Parameters
MobileContext$mobileContext
Skin$skin

◆ setMultiple()

MediaWiki\Minerva\SkinOptions::setMultiple ( array $options)

override an existing option or options with new values

Parameters
array$options

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