FaqCategoryExtension
class FaqCategoryExtension extends Twig_Extension
Class FaqCategoryExtension is injected as twig.extension.faq.category service. FaqCategoryExtension handles the logic and provides necessary data for managed entity in twig.
Methods
getFunctions()
{@inheritdoc}
QueryBuilder|null
getTreeCategories(string $locale)
Find cached tree for provided locale
setTreeCategoriesToCache(string $locale)
Generate cached category tree for provided locale
mixed
getEntitiesForBlockElementsExtension(array $ids)
No description
string
getName()
Returns the name of the extension.
mixed
hasRootCategory()
Find root node
mixed
Details
at line 39
__construct(FaqCategoryManager $categoryManager)
Constructor
at line 47
getFunctions()
{@inheritdoc}
at line 62
QueryBuilder|null
getTreeCategories(string $locale)
Find cached tree for provided locale
at line 80
setTreeCategoriesToCache(string $locale)
Generate cached category tree for provided locale
at line 92
mixed
getEntitiesForBlockElementsExtension(array $ids)
at line 102
string
getName()
Returns the name of the extension.
at line 112
mixed
hasRootCategory()
Find root node
at line 124
mixed
saveNewCategory(FaqCategory $entity)
Persist new faq category