function TypedConfigManager::createFromNameAndData

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::createFromNameAndData()
  2. 8.9.x core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::createFromNameAndData()
  3. 10 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::createFromNameAndData()

Overrides TypedConfigManagerInterface::createFromNameAndData

1 call to TypedConfigManager::createFromNameAndData()
TypedConfigManager::get in core/lib/Drupal/Core/Config/TypedConfigManager.php
Gets typed configuration data.

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 427

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function createFromNameAndData($config_name, array $config_data) {
    $definition = $this->getDefinition($config_name);
    $data_definition = $this->buildDataDefinition($definition, $config_data);
    return $this->create($data_definition, $config_data, $config_name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.