public static function HeartbeatType::postDelete in Heartbeat 8
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 ConfigEntityBundleBase::postDelete
File
- src/
Entity/ HeartbeatType.php, line 299
Class
- HeartbeatType
- Defines the Heartbeat type entity.
Namespace
Drupal\heartbeat\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
// Clear the heartbeat type cache to reflect the removal.
$storage
->resetCache(array_keys($entities));
}