Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::preDelete()
  2. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\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.

3 calls to EntityInterface::preDelete()
BlockContent::preDelete in core/modules/block_content/src/Entity/BlockContent.php
Acts on entities before they are deleted and before hooks are invoked.
MenuLinkContent::preDelete in core/modules/menu_link_content/src/Entity/MenuLinkContent.php
Acts on entities before they are deleted and before hooks are invoked.
Node::preDelete in core/modules/node/src/Entity/Node.php
Acts on entities before they are deleted and before hooks are invoked.
6 methods override EntityInterface::preDelete()
BlockContent::preDelete in core/modules/block_content/src/Entity/BlockContent.php
Acts on entities before they are deleted and before hooks are invoked.
EntityBase::preDelete in core/lib/Drupal/Core/Entity/EntityBase.php
Acts on entities before they are deleted and before hooks are invoked.
File::preDelete in core/modules/file/src/Entity/File.php
Acts on entities before they are deleted and before hooks are invoked.
MenuLinkContent::preDelete in core/modules/menu_link_content/src/Entity/MenuLinkContent.php
Acts on entities before they are deleted and before hooks are invoked.
Node::preDelete in core/modules/node/src/Entity/Node.php
Acts on entities before they are deleted and before hooks are invoked.

... See full list

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);