You are here

public static function MicrositeMenuItemOverride::postDelete in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/Entity/MicrositeMenuItemOverride.php \Drupal\entity_hierarchy_microsite\Entity\MicrositeMenuItemOverride::postDelete()

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

modules/entity_hierarchy_microsite/src/Entity/MicrositeMenuItemOverride.php, line 153

Class

MicrositeMenuItemOverride
Defines a class for a content entity to store menu item overrides.

Namespace

Drupal\entity_hierarchy_microsite\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
  parent::postDelete($storage, $entities);
  \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityHooks::class)
    ->onMenuOverridePostDelete($entities);
}