Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityInterface.php

function EntityInterface::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.

2 methods override EntityInterface::preDelete()
EntityBase::preDelete in core/lib/Drupal/Core/Entity/EntityBase.php
Acts on entities before they are deleted and before hooks are invoked.
ViewUI::preDelete in core/modules/views_ui/src/ViewUI.php
Acts on entities before they are deleted and before hooks are invoked.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 308

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal