PHP Interface Sulu\Bundle\WebsiteBundle\Twig\Navigation\NavigationTwigExtensionInterface

Inheritance: extends Twig_ExtensionInterface
Datei anzeigen Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
breadcrumbFunction ( $uuid ) : NavigationItem[] Returns breadcrumb for given node.
flatNavigationFunction ( string $uuid, string $context = null, integer $depth = 1, boolean $loadExcerpt = false, integer $level = null ) : NavigationItem[] Returns a flat navigation of children from given parent (uuid).
flatRootNavigationFunction ( string $context = null, integer $depth = 1, boolean $loadExcerpt = false ) : NavigationItem[] Returns a flat navigation of first layer.
navigationIsActiveFunction ( string $requestUrl, string $itemUrl ) : NavigationItem[] Returns a boolean value to check if navigation item is active.
treeNavigationFunction ( string $uuid, string $context = null, integer $depth = 1, boolean $loadExcerpt = false, integer $level = null ) : NavigationItem[] Returns a tree navigation of children from given parent (uuid).
treeRootNavigationFunction ( string $context = null, integer $depth = 1, boolean $loadExcerpt = false ) : NavigationItem[] Returns a tree navigation of first layer.

Method Details

breadcrumbFunction() public method

Returns breadcrumb for given node.
public breadcrumbFunction ( $uuid ) : NavigationItem[]
$uuid
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]

flatNavigationFunction() public method

Returns a flat navigation of children from given parent (uuid).
public flatNavigationFunction ( string $uuid, string $context = null, integer $depth = 1, boolean $loadExcerpt = false, integer $level = null ) : NavigationItem[]
$uuid string
$context string
$depth integer
$loadExcerpt boolean
$level integer
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]

flatRootNavigationFunction() public method

Returns a flat navigation of first layer.
public flatRootNavigationFunction ( string $context = null, integer $depth = 1, boolean $loadExcerpt = false ) : NavigationItem[]
$context string
$depth integer
$loadExcerpt boolean
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]

navigationIsActiveFunction() public method

Returns a boolean value to check if navigation item is active.
public navigationIsActiveFunction ( string $requestUrl, string $itemUrl ) : NavigationItem[]
$requestUrl string
$itemUrl string
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]

treeNavigationFunction() public method

Returns a tree navigation of children from given parent (uuid).
public treeNavigationFunction ( string $uuid, string $context = null, integer $depth = 1, boolean $loadExcerpt = false, integer $level = null ) : NavigationItem[]
$uuid string
$context string
$depth integer
$loadExcerpt boolean
$level integer
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]

treeRootNavigationFunction() public method

Returns a tree navigation of first layer.
public treeRootNavigationFunction ( string $context = null, integer $depth = 1, boolean $loadExcerpt = false ) : NavigationItem[]
$context string
$depth integer
$loadExcerpt boolean
return Sulu\Bundle\WebsiteBundle\Navigation\NavigationItem[]