DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

devel:event:menu_items_assembly

This is an old revision of the document!


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 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 AbtractItem descendants.

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

  • FIXME

See also

devel/event/menu_items_assembly.1504254760.txt.gz · Last modified: 2017-09-01 10:32 by andi