function TypedConfigManagerInterface::createFromNameAndData

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

Gets typed data for a given configuration name and its values.

Parameters

string $config_name: The machine name of the configuration.

array $config_data: The data associated with the configuration. Note: This configuration doesn't yet have to be stored.

Return value

\Drupal\Core\TypedData\TraversableTypedDataInterface The typed configuration element.

1 method overrides TypedConfigManagerInterface::createFromNameAndData()
TypedConfigManager::createFromNameAndData in core/lib/Drupal/Core/Config/TypedConfigManager.php
Gets typed data for a given configuration name and its values.

File

core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php, line 88

Class

TypedConfigManagerInterface
Defines an interface for managing config schema type plugins.

Namespace

Drupal\Core\Config

Code

public function createFromNameAndData($config_name, array $config_data);

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