You are here

public function EntityAdapter::isEmpty in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php \Drupal\Core\Entity\Plugin\DataType\EntityAdapter::isEmpty()

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides ComplexDataInterface::isEmpty

File

core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php, line 128

Class

EntityAdapter
Defines the "entity" data type.

Namespace

Drupal\Core\Entity\Plugin\DataType

Code

public function isEmpty() {
  return !isset($this->entity);
}