DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:menu_items_assembly

MENU_ITEMS_ASSEMBLY

Description:
Handle the items in the various menus provided by templates
DefaultAction:
Add the default items for the menu
Preventable:
yes
Added:
2017-09-01

This event is signalled by AbstractMenu::getItems() (and it's children) in /inc/Menu/AbstractMenu.php when the menu in question is assembled, handlers can use it to add or remove items from the menu.

Passed Data

The $data array contains two keys:

  • view defines the menu that is currently built (please refer to Menus on which menus exist)
  • items contains an array of AbstractItem descendants.

Example

An example on how to implement this event can be seen in this:

See also: example

See also

devel/event/menu_items_assembly.txt · Last modified: 2018-12-08 15:55 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki