public function Configs::getConfig in Bamboo Twig 8
Load given Config API configuration.
Parameters
string $key: The key of the data to retrieve.
string $name: The name of config to retrieve.
Return value
mixed|null Returns the stored value for a given key, or NULL if no value exists.
File
- bamboo_twig_config/
src/ TwigExtension/ Configs.php, line 63
Class
- Configs
- Provides a 'Configs' Twig Extensions.
Namespace
Drupal\bamboo_twig_config\TwigExtensionCode
public function getConfig($key, $name) {
return $this->config
->get($key)
->get($name);
}