TypedConfigManager::get

public TypedConfigManager::get($name)

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 70

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);
}
doc_Drupal
2016-10-29 09:49:55
Comments
Leave a Comment

Please login to continue.