SurveyCategoryExtension
class SurveyCategoryExtension extends Twig_Extension
Class SurveyCategoryExtension is injected as twig.extension.survey.category service. SurveyCategoryExtension handles the logic and provides necessary data for managed entity in twig.
Methods
getFunctions()
{@inheritdoc}
QueryBuilder|null
getTreeCategories(string $locale)
Get tree categories
setTreeCategoriesToCache(string $locale)
Set tree categories to cache
string
getName()
Returns the name of the extension.
mixed
hasRootCategory()
No description
Details
at line 36
__construct(SurveyCategoryManager $categoryManager)
Constructor
at line 44
getFunctions()
{@inheritdoc}
at line 58
QueryBuilder|null
getTreeCategories(string $locale)
Get tree categories
at line 76
setTreeCategoriesToCache(string $locale)
Set tree categories to cache
at line 91
string
getName()
Returns the name of the extension.
at line 99
mixed
hasRootCategory()
at line 111
SurveyCategory
saveCategory(SurveyCategory $category)
Save category