You are here

public function TypedConfigManager::get in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::get()

Gets typed configuration data.

Parameters

string $name: Configuration object name.

Return value

\Drupal\Core\TypedData\TraversableTypedDataInterface Typed configuration element.

Overrides TypedConfigManagerInterface::get

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 75
Contains \Drupal\Core\Config\TypedConfigManager.

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function get($name) {
  $data = $this->configStorage
    ->read($name);
  $type_definition = $this
    ->getDefinition($name);
  $data_definition = $this
    ->buildDataDefinition($type_definition, $data);
  return $this
    ->create($data_definition, $data);
}