TagService
This service class contains functions related to tag functionality.
All public functions are available in the Twig template renderer.
Methods
public __construct($tagRepository)
TagService constructor.
Type |
Name |
Description |
|
public getTagById($tagId):Tag
Get a tag by its id
Type |
Name |
Description |
|
The id of the tag |
public getTagName($tagId, $lang = null):string
Get the name of a tag for a specific language
Type |
Name |
Description |
|
The id of the tag |
|
|
The language to get the name in (ISO-639-1) |
Thank you for your feedback!