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

__construct(FaqCategoryManager $categoryManager)

Constructor

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
saveNewCategory(FaqCategory $entity)

Persist new faq category

Details

at line 39
__construct(FaqCategoryManager $categoryManager)

Constructor

Parameters

FaqCategoryManager $categoryManager

at line 47
getFunctions()

{@inheritdoc}

at line 62
QueryBuilder|null getTreeCategories(string $locale)

Find cached tree for provided locale

Parameters

string $locale

Return Value

QueryBuilder|null

at line 80
setTreeCategoriesToCache(string $locale)

Generate cached category tree for provided locale

Parameters

string $locale

at line 92
mixed getEntitiesForBlockElementsExtension(array $ids)

Parameters

array $ids

Return Value

mixed

at line 102
string getName()

Returns the name of the extension.

Return Value

string The extension name

at line 112
mixed hasRootCategory()

Find root node

Return Value

mixed

at line 124
mixed saveNewCategory(FaqCategory $entity)

Persist new faq category

Parameters

FaqCategory $entity

Return Value

mixed