public DataDefinition::__construct(array $values = array())
Constructs a new data definition object.
Parameters
array $values: (optional) If given, an array of initial values to set on the definition.
File
- core/lib/Drupal/Core/TypedData/DataDefinition.php, line 44
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedData
Code
public function __construct(array $values = array()) { $this->definition = $values; }
Please login to continue.