function ViewUI::preDelete

Same name and namespace in other branches
  1. 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::preDelete()
  2. 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::preDelete()
  3. 11.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::preDelete()

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

core/modules/views_ui/src/ViewUI.php, line 1118

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.