Elgg  Version 6.1
Public Member Functions | List of all members
Elgg\Notifications\RegisterSubscriptionMenuItemsHandler Class Reference

Register menu items to any menu to handle entity subscriptions. More...

Public Member Functions

 __invoke (\Elgg\Event $event)
 Add menu items to a menu. More...
 

Detailed Description

Register menu items to any menu to handle entity subscriptions.

This should be registered to or call from a event handler 'register', 'menu:<menu name>="">'

Since
4.0

Definition at line 14 of file RegisterSubscriptionMenuItemsHandler.php.

Member Function Documentation

Elgg\Notifications\RegisterSubscriptionMenuItemsHandler::__invoke ( \Elgg\Event  $event)

Add menu items to a menu.

The event requires

  • params['entity'] the entity for which to register the menu items
  • return needs to be a MenuItems collection
Parameters
\Elgg\Event$event'register', 'menu:<menu name>="">'
Returns
void|MenuItems

Definition at line 27 of file RegisterSubscriptionMenuItemsHandler.php.


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