public function EntityTranslation::isEmpty

Implements ComplexDataInterface::isEmpty().

Overrides ComplexDataInterface::isEmpty

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 224
Definition of Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Makes translated entity properties available via the Field API.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function isEmpty() {
  foreach ($this
    ->getProperties() as $property) {
    if ($property
      ->getValue() !== NULL) {
      return FALSE;
    }
  }
  return TRUE;
}