function FieldConfigBase::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/Field/FieldConfigBase.php, line 517

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

public function isList() {
  return TRUE;
}

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