You are here

public function Configs::getState in Bamboo Twig 8

Load given State API configuration.

Parameters

string $key: The key of the data 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 76

Class

Configs
Provides a 'Configs' Twig Extensions.

Namespace

Drupal\bamboo_twig_config\TwigExtension

Code

public function getState($key) {
  return $this->state
    ->get($key);
}