ListDataDefinition::create

public static ListDataDefinition::create($item_type)

Creates a new list definition.

Parameters

string $item_type: The data type of the list items; e.g., 'string', 'integer' or 'any'.

Return value

\Drupal\Core\TypedData\ListDataDefinition A new List Data Definition object.

Overrides DataDefinition::create

File

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

Class

ListDataDefinition
A typed data definition class for defining lists.

Namespace

Drupal\Core\TypedData

Code

public static function create($item_type) {
  return static::createFromItemType($item_type);
}
doc_Drupal
2016-10-29 09:23:28
Comments
Leave a Comment

Please login to continue.