You are here

public static function ServiceResource::postDelete in Services 8.4

Same name and namespace in other branches
  1. 9.0.x src/Entity/ServiceResource.php \Drupal\services\Entity\ServiceResource::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

src/Entity/ServiceResource.php, line 197

Class

ServiceResource
Defines service resource entity.

Namespace

Drupal\services\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
  parent::postDelete($storage, $entities);
  \Drupal::service('router.builder')
    ->setRebuildNeeded();
}