ListDataDefinition::__construct

public ListDataDefinition::__construct(array $values = array(), DataDefinitionInterface $item_definition = NULL)

Constructs a new data definition object.

Parameters

array $values: (optional) If given, an array of initial values to set on the definition.

Overrides DataDefinition::__construct

File

core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 50

Class

ListDataDefinition
A typed data definition class for defining lists.

Namespace

Drupal\Core\TypedData

Code

public function __construct(array $values = array(), DataDefinitionInterface $item_definition = NULL) {
  $this->definition = $values;
  $this->itemDefinition = $item_definition;
}
doc_Drupal
2016-10-29 09:23:29
Comments
Leave a Comment

Please login to continue.