MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Menu\Entries\IMenuEntry Interface Reference

Model for a menu entry. More...

+ Inheritance diagram for MediaWiki\Minerva\Menu\Entries\IMenuEntry:

Public Member Functions

 getName ()
 Get the menu entry name/identifier.
 
 getCSSClasses ()
 Get the CSS classes that should be applied to the element.
 
 getComponents ()
 Returns the list of components of the menu entry.
 

Detailed Description

Model for a menu entry.

Member Function Documentation

◆ getComponents()

MediaWiki\Minerva\Menu\Entries\IMenuEntry::getComponents ( )

Returns the list of components of the menu entry.

Each component is an array of HTML attributes with at least:

  • text -> text to show
  • href -> href attribute
  • class -> css class applied to it
    Returns
    array

Implemented in MediaWiki\Minerva\Menu\Entries\CompositeMenuEntry, MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry, MediaWiki\Minerva\Menu\Entries\ProfileMenuEntry, and MediaWiki\Minerva\Menu\Entries\SingleMenuEntry.

◆ getCSSClasses()

MediaWiki\Minerva\Menu\Entries\IMenuEntry::getCSSClasses ( )

◆ getName()

MediaWiki\Minerva\Menu\Entries\IMenuEntry::getName ( )

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