You are here

public static function Entity::preDelete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::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

4 calls to Entity::preDelete()
ConfigEntityBase::preDelete in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.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.
5 methods override Entity::preDelete()
ConfigEntityBase::preDelete in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Acts on entities before they are deleted and before hooks are invoked.
Feed::preDelete in core/modules/aggregator/src/Entity/Feed.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.

File

core/lib/Drupal/Core/Entity/Entity.php, line 439
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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