Elgg  Version master
Static Public Member Functions | Static Protected Member Functions | List of all members
Elgg\Menus\EntityNavigation Class Reference

Register menu items to the entity_navigation menu. More...

Static Public Member Functions

static registerPreviousNext (\Elgg\Event $event)
 Register the previous/next menu items. More...
 

Static Protected Member Functions

static getPreviousMenuItem (\ElggEntity $entity, array $base_options)
 Get a menu item to an entity before the current entity. More...
 
static getNextMenuItem (\ElggEntity $entity, array $base_options)
 Get a menu item to an entity after the current entity. More...
 

Detailed Description

Register menu items to the entity_navigation menu.

Since
4.0

Definition at line 13 of file EntityNavigation.php.

Member Function Documentation

static Elgg\Menus\EntityNavigation::getNextMenuItem ( \ElggEntity  $entity,
array  $base_options 
)
staticprotected

Get a menu item to an entity after the current entity.

Parameters
\ElggEntity$entitythe current entity
array$base_optionselgg_get_entities options
Returns
void|

Definition at line 102 of file EntityNavigation.php.

static Elgg\Menus\EntityNavigation::getPreviousMenuItem ( \ElggEntity  $entity,
array  $base_options 
)
staticprotected

Get a menu item to an entity before the current entity.

Parameters
\ElggEntity$entitythe current entity
array$base_optionselgg_get_entities options
Returns
void|

Definition at line 59 of file EntityNavigation.php.

static Elgg\Menus\EntityNavigation::registerPreviousNext ( \Elgg\Event  $event)
static

Register the previous/next menu items.

Parameters
\Elgg\Event$event'register', 'menu:entity_navigation'
Returns
void|MenuItems

Definition at line 22 of file EntityNavigation.php.


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