public static function EckEntityBundle::postDelete in Entity Construction Kit (ECK) 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/ EckEntityBundle.php, line 76
Class
- EckEntityBundle
- Defines the ECK entity bundle configuration entity.
Namespace
Drupal\eck\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
parent::postDelete($storage, $entities);
// Clear the cache.
$storage
->resetCache([
$entities,
]);
// Clear all caches because the action links need to be regenerated.
// @todo figure out how to do this without clearing ALL caches.
drupal_flush_all_caches();
}