protected function ContentEntityStorageBase::doDelete in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::doDelete()
Performs storage-specific entity deletion.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entity objects to delete.
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 320 - Contains \Drupal\Core\Entity\ContentEntityStorageBase.
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);
}