function TypedConfigManager::createFromNameAndData
Same name in other branches
- 9 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::createFromNameAndData()
- 10 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::createFromNameAndData()
- 11.x 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 392
Class
- TypedConfigManager
- Manages config schema type plugins.
Namespace
Drupal\Core\ConfigCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.