You are here

public function Config::getConfig in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getConfig()
  2. 8.3 bamboo_twig_config/src/TwigExtension/Config.php \Drupal\bamboo_twig_config\TwigExtension\Config::getConfig()
  3. 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 55

Class

Config
Provides getter for configs drupal storage as Twig Extensions.

Namespace

Drupal\bamboo_twig_config\TwigExtension

Code

public function getConfig($key, $name) {
  return $this
    ->getConfigFactory()
    ->get($key)
    ->get($name);
}