PHP Class Sulu\Bundle\WebsiteBundle\Twig\Navigation\NavigationTwigExtension

Inheritance: extends Twig_Extension, implements Sulu\Bundle\WebsiteBundle\Twig\Navigation\NavigationTwigExtensionInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, Sulu\Bundle\WebsiteBundle\Navigation\NavigationMapperInterface $navigationMapper, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null )
breadcrumbFunction ( $uuid )
flatNavigationFunction ( $uuid, $context = null, $depth = 1, $loadExcerpt = false, $level = null )
flatRootNavigationFunction ( $context = null, $depth = 1, $loadExcerpt = false )
getFunctions ( )
getName ( )
navigationIsActiveFunction ( string $requestPath, string $itemPath ) : boolean
treeNavigationFunction ( $uuid, $context = null, $depth = 1, $loadExcerpt = false, $level = null )
treeRootNavigationFunction ( $context = null, $depth = 1, $loadExcerpt = false )

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, Sulu\Bundle\WebsiteBundle\Navigation\NavigationMapperInterface $navigationMapper, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null )
$contentMapper Sulu\Component\Content\Mapper\ContentMapperInterface
$navigationMapper Sulu\Bundle\WebsiteBundle\Navigation\NavigationMapperInterface
$requestAnalyzer Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface

breadcrumbFunction() public method

public breadcrumbFunction ( $uuid )

flatNavigationFunction() public method

public flatNavigationFunction ( $uuid, $context = null, $depth = 1, $loadExcerpt = false, $level = null )

flatRootNavigationFunction() public method

public flatRootNavigationFunction ( $context = null, $depth = 1, $loadExcerpt = false )

getFunctions() public method

public getFunctions ( )

getName() public method

public getName ( )

navigationIsActiveFunction() public method

public navigationIsActiveFunction ( string $requestPath, string $itemPath ) : boolean
$requestPath string
$itemPath string
return boolean

treeNavigationFunction() public method

public treeNavigationFunction ( $uuid, $context = null, $depth = 1, $loadExcerpt = false, $level = null )

treeRootNavigationFunction() public method

public treeRootNavigationFunction ( $context = null, $depth = 1, $loadExcerpt = false )