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

Director responsible for building Page Actions menu. More...

Public Member Functions

 __construct (ToolbarBuilder $toolbarBuilder, IOverflowBuilder $overflowBuilder, MessageLocalizer $messageLocalizer)
 Director responsible for Page Actions menu building.
 
 buildMenu (array $toolbox, array $actions, array $views)
 Build the menu data array that can be passed to views/javascript.
 

Detailed Description

Director responsible for building Page Actions menu.

This class is stateless.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Minerva\Menu\PageActions\PageActionsDirector::__construct ( ToolbarBuilder $toolbarBuilder,
IOverflowBuilder $overflowBuilder,
MessageLocalizer $messageLocalizer )

Director responsible for Page Actions menu building.

Parameters
ToolbarBuilder$toolbarBuilder
IOverflowBuilder$overflowBuilderThe overflow menu builder
MessageLocalizer$messageLocalizerMessage localizer used to translate texts

Member Function Documentation

◆ buildMenu()

MediaWiki\Minerva\Menu\PageActions\PageActionsDirector::buildMenu ( array $toolbox,
array $actions,
array $views )

Build the menu data array that can be passed to views/javascript.

Parameters
array$toolboxAn array of common toolbox items from the sidebar menu
array$actionsAn array of actions usually bucketed under the more menu
array$viewsAn array of actions usually bucketed under the view menu
Returns
array

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