function ContentEntityStorageBase::doDelete

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()
  3. 11.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()

Overrides EntityStorageBase::doDelete

1 method overrides ContentEntityStorageBase::doDelete()
ContentEntityNullStorage::doDelete in core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php

File

core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 793

Class

ContentEntityStorageBase
Base class for content entity storage handlers.

Namespace

Drupal\Core\Entity

Code

protected function doDelete($entities) {
    
    /** @var \Drupal\Core\Entity\ContentEntityInterface[] $entities */
    foreach ($entities as $entity) {
        $this->invokeFieldMethod('delete', $entity);
    }
    $this->doDeleteFieldItems($entities);
}

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