DataDefinition::__construct

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;
}
doc_Drupal
2016-10-29 09:00:09
Comments
Leave a Comment

Please login to continue.