function DataDefinitionInterface::isList

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::isList()
  2. 10 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::isList()
  3. 11.x core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::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.

2 methods override DataDefinitionInterface::isList()
DataDefinition::isList in core/lib/Drupal/Core/TypedData/DataDefinition.php
Returns whether the data is multi-valued, i.e. a list of data items.
FieldConfigBase::isList in core/lib/Drupal/Core/Field/FieldConfigBase.php
Returns whether the data is multi-valued, i.e. a list of data items.

File

core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php, line 86

Class

DataDefinitionInterface
Interface for data definitions.

Namespace

Drupal\Core\TypedData

Code

public function isList();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.