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; }
Please login to continue.