TemplateConfigService
This service class contains functions related to template configuration functionality.
All public functions are available in the Twig template renderer.
Methods
public __construct($configRepository)
TemplateConfigService constructor.
Type |
Name |
Description |
|
public get($key, $default = null):mixed
Get a config value by it's key
Type |
Name |
Description |
|
Key of the config value |
|
|
Optional: A default to be returned, if no value for given key is set (Default: null) |
public getBoolean($key, $default = false):bool
Get a config value by it's key as a boolean
Type |
Name |
Description |
|
Key of the config value |
|
|
Optional: A default to be returned, if no value for given key is set (Default: false) |
public getInteger($key, $default):int
Get a config value by it's key as an integer
Type |
Name |
Description |
|
Key of the config value |
|
|
Optional: A default to be returned, if no value for given key is set (Default: 0) |