protected function TeamMemberRoleStorage::doDelete in Apigee Edge 8
Performs storage-specific entity deletion.
Parameters
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entity objects to delete.
Overrides ContentEntityStorageBase::doDelete
File
- modules/
apigee_edge_teams/ src/ Entity/ Storage/ TeamMemberRoleStorage.php, line 266
Class
- TeamMemberRoleStorage
- Entity storage class for team member role entities.
Namespace
Drupal\apigee_edge_teams\Entity\StorageCode
protected function doDelete($entities) {
/** @var \Drupal\apigee_edge_teams\Entity\TeamMemberRoleInterface $entity */
foreach ($entities as $entity) {
// This sanity check allows uninstalling the module if there is no
// connection to Apigee Edge.
if (($team = $entity
->getTeam()) !== NULL) {
// See explanation in doSave().
Cache::invalidateTags($team
->getCacheTags());
}
}
parent::doDelete($entities);
}