public static function FieldEncryptEntityType::postDelete in Field Encryption 3.0.x
Acts on deleted entities before the delete hook is invoked.
Used after the entities are deleted but before invoking the delete hook.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postDelete
File
- src/
Entity/ FieldEncryptEntityType.php, line 130
Class
- FieldEncryptEntityType
- Defines the Field Encrypt entity type configuration entity.
Namespace
Drupal\field_encrypt\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
foreach ($entities as $entity) {
self::queueEntityUpdates($entity
->id());
}
// Update the field_encrypt module's state.
\Drupal::service('field_encrypt.state_manager')
->update();
// Ensure base field definitions are rebuilt.
\Drupal::service('entity_field.manager')
->clearCachedFieldDefinitions();
}