Search for preDelete

  1. Search 7.x for preDelete
  2. Search 9.5.x for preDelete
  3. Search 8.9.x for preDelete
  4. Search 10.3.x for preDelete
  5. Other projects
Title Object type File name Summary
BrowserTestBase::filePreDeleteCallback function core/tests/Drupal/Tests/BrowserTestBase.php Ensures test files are deletable.
CommentHooks::entityPredelete function core/modules/comment/src/Hook/CommentHooks.php Implements hook_entity_predelete().
CommentHooks::userPredelete function core/modules/comment/src/Hook/CommentHooks.php Implements hook_ENTITY_TYPE_predelete() for user entities.
ConfigEntityBase::preDelete function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php Acts on entities before they are deleted and before hooks are invoked.
EntityBase::preDelete function core/lib/Drupal/Core/Entity/EntityBase.php Acts on entities before they are deleted and before hooks are invoked.
EntityDisplayModeBase::preDelete function core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php Acts on entities before they are deleted and before hooks are invoked.
EntityInterface::preDelete function core/lib/Drupal/Core/Entity/EntityInterface.php Acts on entities before they are deleted and before hooks are invoked.
EntityUnitTest::testPreDelete function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php Tests pre delete.
hook_entity_predelete function core/lib/Drupal/Core/Entity/entity.api.php Act before entity deletion.
hook_ENTITY_TYPE_predelete function core/lib/Drupal/Core/Entity/entity.api.php Act before entity deletion of a particular entity type.
ImageHooks::filePredelete function core/modules/image/src/Hook/ImageHooks.php Implements hook_ENTITY_TYPE_predelete() for file entities.
NodeEntityHooks::userPredelete function core/modules/node/src/Hook/NodeEntityHooks.php Implements hook_ENTITY_TYPE_predelete() for user entities.
TaxonomyHooks::nodePredelete function core/modules/taxonomy/src/Hook/TaxonomyHooks.php Implements hook_ENTITY_TYPE_predelete() for node entities.
ViewUI::preDelete function core/modules/views_ui/src/ViewUI.php Acts on entities before they are deleted and before hooks are invoked.
Vocabulary::preDelete function core/modules/taxonomy/src/Entity/Vocabulary.php Acts on entities before they are deleted and before hooks are invoked.

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