Method |
Description |
|
__construct ( Knp\Menu\Twig\Helper $helper, Knp\Menu\Matcher\MatcherInterface $matcher, Knp\Menu\Util\MenuManipulator $menuManipulator ) |
|
|
get ( Knp\Menu\ItemInterface | string $menu, array $path = [], array $options = [] ) : Knp\Menu\ItemInterface |
Retrieves an item following a path in the tree. |
|
getBreadcrumbsArray ( Knp\Menu\ItemInterface | array | string $menu, string | array | null $subItem = null ) : array |
Returns an array ready to be used for breadcrumbs. |
|
getCurrentItem ( Knp\Menu\ItemInterface | array | string $menu ) : Knp\Menu\ItemInterface | null |
Returns the current item of a menu. |
|
getName ( ) : string |
|
|
getPathAsString ( Knp\Menu\ItemInterface $menu, string $separator = ' > ' ) : string |
A string representation of this menu item |
|
isAncestor ( Knp\Menu\ItemInterface $item, integer $depth = null ) : boolean |
Checks whether an item is the ancestor of a current item. |
|
isCurrent ( Knp\Menu\ItemInterface $item ) : boolean |
Checks whether an item is current. |
|
render ( Knp\Menu\ItemInterface | string | array $menu, array $options = [], string $renderer = null ) : string |
Renders a menu with the specified renderer. |
|