Property | Type | Description | |
---|---|---|---|
$cache | Doctrine\Common\Cache\Cache | ||
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface | ||
$twig | Twig_Environment |
Method | Description | |
---|---|---|
__construct ( Twig_Environment $twig, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Doctrine\Common\Cache\Cache $cache ) | ||
getStructures ( $webspaceKey ) |
Method | Description | |
---|---|---|
loadStructures ( string $webspaceKey ) : array | Returns and caches structures for given webspace. | |
templateExists ( string $template ) : boolean | checks if a template with given name exists. |
public __construct ( Twig_Environment $twig, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, Doctrine\Common\Cache\Cache $cache ) | ||
$twig | Twig_Environment | |
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface | |
$cache | Doctrine\Common\Cache\Cache |
protected loadStructures ( string $webspaceKey ) : array | ||
$webspaceKey | string | |
return | array |
protected templateExists ( string $template ) : boolean | ||
$template | string | |
return | boolean |
protected Cache,Doctrine\Common\Cache $cache | ||
return | Doctrine\Common\Cache\Cache |
protected StructureManagerInterface,Sulu\Component\Content\Compat $structureManager | ||
return | Sulu\Component\Content\Compat\StructureManagerInterface |