Implements \Drupal\Core\TypedData\ComplexDataInterface::isEmpty().
Overrides Entity::isEmpty
public function isEmpty() {
if (!$this
->isNew()) {
return FALSE;
}
foreach ($this
->getProperties() as $property) {
if ($property
->getValue() !== NULL) {
return FALSE;
}
}
return TRUE;
}