public TypedConfigManagerInterface::buildDataDefinition(array $definition, $value, $name = NULL, $parent = NULL)
Creates a new data definition object from a type definition array and actual configuration data. Since type definitions may contain variables to be replaced, we need the configuration value to create it.
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.
\Drupal\Core\TypedData\DataDefinitionInterface A data definition for the given data type.
public function buildDataDefinition(array $definition, $value, $name = NULL, $parent = NULL);
© 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!TypedConfigManagerInterface.php/function/TypedConfigManagerInterface::buildDataDefinition/8.1.x