PHP Class Jarves\Twig\NodeIsActiveExtension

Inheritance: extends Twig_Extension
Show file Open project: jarves/jarves

Public Methods

Method Description
__construct ( PageStack $pageStack )
getFilters ( )
getName ( )
isActive ( Node | integer | string $id, boolean $exact = false ) : boolean

Method Details

__construct() public method

public __construct ( PageStack $pageStack )
$pageStack Jarves\PageStack

getFilters() public method

public getFilters ( )

getName() public method

public getName ( )

isActive() public method

public isActive ( Node | integer | string $id, boolean $exact = false ) : boolean
$id Jarves\Model\Node | integer | string Node, node id, or node url
$exact boolean whether it should also return true when a children is active
return boolean