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