function ContentEntityStorageBase::doDelete
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()
- 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()
- 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 - Performs storage-specific entity deletion.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 793
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
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.