function DataDefinition::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::__construct()
- 10 core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::__construct()
- 11.x core/lib/Drupal/Core/TypedData/DataDefinition.php \Drupal\Core\TypedData\DataDefinition::__construct()
Constructs a new data definition object.
Parameters
array $values: (optional) If given, an array of initial values to set on the definition.
1 method overrides DataDefinition::__construct()
- ListDataDefinition::__construct in core/
lib/ Drupal/ Core/ TypedData/ ListDataDefinition.php - Constructs a new data definition object.
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php, line 46
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedDataCode
public function __construct(array $values = []) {
$this->definition = $values;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.