function EntityBase::preDelete

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::preDelete()
  2. 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::preDelete()
  3. 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::preDelete()

Overrides EntityInterface::preDelete

5 calls to EntityBase::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.
Workspace::preDelete in core/modules/workspaces/src/Entity/Workspace.php
Acts on entities before they are deleted and before hooks are invoked.
6 methods override EntityBase::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.

... See full list

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 466

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

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.