You are here

public static function UnsavedIndexConfiguration::preDelete in Search API 8

Acts on entities before they are deleted and before hooks are invoked.

Used before the entities are deleted and 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 EntityInterface::preDelete

File

src/UnsavedIndexConfiguration.php, line 923

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public static function preDelete(EntityStorageInterface $storage, array $entities) {
  EntityInterface::preDelete($storage, $entities);
}