Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/ListInterface.php \Drupal\Core\TypedData\ListInterface::isEmpty()
  2. 9 core/lib/Drupal/Core/TypedData/ListInterface.php \Drupal\Core\TypedData\ListInterface::isEmpty()

Determines whether the list contains any non-empty items.

Return value

bool TRUE if the list is empty, FALSE otherwise.

1 call to ListInterface::isEmpty()
EntityReferenceFieldItemList::referencedEntities in core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php
Gets the entities referenced by this field, preserving field item deltas.

File

core/lib/Drupal/Core/TypedData/ListInterface.php, line 34

Class

ListInterface
Interface for a list of typed data.

Namespace

Drupal\Core\TypedData

Code

public function isEmpty();