W3cubDocs

/Drupal 8

public function 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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!TypedConfigManager.php/function/TypedConfigManager::get/8.1.x