GetAllTagNames
in package
Use case for retrieving all tag names (for caching and autocomplete).
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- getTermTags() : array<string|int, string>
- Get all term tag names.
- getTextTags() : array<string|int, string>
- Get all text tag names.
- refreshTermTags() : array<string|int, string>
- Refresh term tag cache.
- refreshTextTags() : array<string|int, string>
- Refresh text tag cache.
- getUrlBase() : string
- Get URL base for cache invalidation.
Properties
$termRepository
private
TagRepositoryInterface
$termRepository
$textRepository
private
TagRepositoryInterface
$textRepository
Methods
__construct()
Constructor.
public
__construct(TagRepositoryInterface $termRepository, TagRepositoryInterface $textRepository) : mixed
Parameters
- $termRepository : TagRepositoryInterface
-
Term tag repository
- $textRepository : TagRepositoryInterface
-
Text tag repository
getTermTags()
Get all term tag names.
public
getTermTags([bool $refresh = false ]) : array<string|int, string>
Parameters
- $refresh : bool = false
-
Force refresh from database
Return values
array<string|int, string>getTextTags()
Get all text tag names.
public
getTextTags([bool $refresh = false ]) : array<string|int, string>
Parameters
- $refresh : bool = false
-
Force refresh from database
Return values
array<string|int, string>refreshTermTags()
Refresh term tag cache.
public
refreshTermTags() : array<string|int, string>
Return values
array<string|int, string>refreshTextTags()
Refresh text tag cache.
public
refreshTextTags() : array<string|int, string>
Return values
array<string|int, string>getUrlBase()
Get URL base for cache invalidation.
private
getUrlBase() : string