CategoryServiceTrait
trait CategoryServiceTrait
Trait for component categories service.
Methods
getCategory(array $options = [], string $section = '')
Returns the category service.
void
void
countItems(array $items, string $section)
Adds Count Items for Category Manager.
void
string|null
getTableNameForSection(string|null $section = null)
Returns the table for the count items functions for the given section.
string|null
getStateColumnForSection(string|null $section = null)
Returns the state column for the count items functions for the given section.
Details
CategoryInterface
getCategory(array $options = [], string $section = '')
Since: 4.0.0
Returns the category service.
void
setCategoryFactory(CategoryFactoryInterface $categoryFactory)
Since: 4.0.0
Sets the internal category factory.