public DataDefinition::isList()
Returns whether the data is multi-valued, i.e. a list of data items.
This is equivalent to checking whether the data definition implements the \Drupal\Core\TypedData\ListDefinitionInterface interface.
Return value
bool Whether the data is multi-valued.
Overrides DataDefinitionInterface::isList
File
- core/lib/Drupal/Core/TypedData/DataDefinition.php, line 114
Class
- DataDefinition
- A typed data definition class for defining data based on defined data types.
Namespace
Drupal\Core\TypedData
Code
public function isList() { return ($this instanceof ListDataDefinitionInterface); }
Please login to continue.