KeyValueEntityStorage::doDelete

public KeyValueEntityStorage::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/KeyValueStore/KeyValueEntityStorage.php, line 143

Class

KeyValueEntityStorage
Provides a key value backend for entities.

Namespace

Drupal\Core\Entity\KeyValueStore

Code

public function doDelete($entities) {
  $entity_ids = array_keys($entities);
  $this->keyValueStore->deleteMultiple($entity_ids);
}
doc_Drupal
2016-10-29 09:21:45
Comments
Leave a Comment

Please login to continue.