function TypedConfigManagerInterface::buildDataDefinition
Same name in other branches
- 9 core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php \Drupal\Core\Config\TypedConfigManagerInterface::buildDataDefinition()
- 8.9.x core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php \Drupal\Core\Config\TypedConfigManagerInterface::buildDataDefinition()
- 11.x core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php \Drupal\Core\Config\TypedConfigManagerInterface::buildDataDefinition()
Creates a new data definition object.
Since type definitions may contain variables to be replaced, we need the configuration value to create it.
Parameters
array $definition: The base type definition array, for which a data definition should be created.
$value: Optional value of the configuration element.
string $name: Optional name of the configuration element.
object $parent: Optional parent element.
Return value
\Drupal\Core\TypedData\DataDefinitionInterface A data definition for the given data type.
File
-
core/
lib/ Drupal/ Core/ Config/ TypedConfigManagerInterface.php, line 47
Class
- TypedConfigManagerInterface
- Defines an interface for managing config schema type plugins.
Namespace
Drupal\Core\ConfigCode
public function buildDataDefinition(array $definition, $value, $name = NULL, $parent = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.