public function Config::getConfig in Bamboo Twig 8.2
Same name and namespace in other branches
- 8.5 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getConfig()
- 8.3 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getConfig()
- 8.4 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getConfig()
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/ Config.php, line 54
Class
- Config
- Provides getter for configs drupal storage as Twig Extensions.
Namespace
Drupal\bamboo_twig_config\TwigExtensionCode
public function getConfig($key, $name) {
return $this
->getConfigFactory()
->get($key)
->get($name);
}