ContentEntityStorageBase::doDelete

protected ContentEntityStorageBase::doDelete($entities)

Performs storage-specific entity deletion.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entity objects to delete.

Overrides EntityStorageBase::doDelete

File

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

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);
}
doc_Drupal
2016-10-29 08:57:32
Comments
Leave a Comment

Please login to continue.