You are here

public function PowerMenuHandlerInterface::getMenuPathToActivate in Power Menu 7.2

Get the menu path which sould activated.

This method is used when a handler plugin should modify the menu router item information.

Parameters

$entity: The eintity object

$type: The eintity type

array $item: The router item array to alter

array $alias: The alias or system path for the given entity

Return value

The path to activate or NULL when no path is found.

3 methods override PowerMenuHandlerInterface::getMenuPathToActivate()
PowerMenuNodeHandler::getMenuPathToActivate in plugins/menu_handlers/PowerMenuNodeHandler.class.php
PowerMenuPathHandler::getMenuPathToActivate in plugins/menu_handlers/PowerMenuPathHandler.class.php
PowerMenuTaxonomyHandler::getMenuPathToActivate in plugins/menu_handlers/PowerMenuTaxonomyHandler.class.php

File

plugins/menu_handlers/PowerMenuHandler.interface.php, line 61

Class

PowerMenuHandlerInterface
Interface representing a power menu handler.

Code

public function getMenuPathToActivate($entity, $type, array $router_item, $alias);