Theme logic.
More...
◆ getElementClasses()
OOUI\Theme::getElementClasses |
( |
Element | $element | ) |
|
Get a list of classes to be applied to a widget.
The 'on' and 'off' lists combined MUST contain keys for all classes the theme adds or removes, otherwise state transitions will not work properly.
- Parameters
-
Element | $element | Element for which to get classes |
- Returns
- string[][] Categorized class names with
on
and off
lists
Reimplemented in OOUI\BlankTheme, and OOUI\WikimediaUITheme.
◆ setSingleton()
static OOUI\Theme::setSingleton |
( |
Theme | $theme = null | ) |
|
|
static |
- Parameters
-
Theme | null | $theme | Theme to use throughout the application |
◆ singleton()
static OOUI\Theme::singleton |
( |
| ) |
|
|
static |
◆ updateElementClasses()
OOUI\Theme::updateElementClasses |
( |
Element | $element | ) |
|
Update CSS classes provided by the theme.
For elements with theme logic hooks, this should be called any time there's a state change.
- Parameters
-
Element | $element | Element for which to update classes |
The documentation for this class was generated from the following file: