Search for preDelete

  1. Search 7.x for preDelete
  2. Search 9.5.x for preDelete
  3. Search 10.3.x for preDelete
  4. Search 11.x for preDelete
  5. Other projects
Title Object type File name Summary
book_node_predelete function core/modules/book/book.module Implements hook_ENTITY_TYPE_predelete() for node entities.
BrowserTestBase::filePreDeleteCallback function core/tests/Drupal/Tests/BrowserTestBase.php Ensures test files are deletable.
ConfigEntityBase::preDelete function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php Acts on entities before they are deleted and before hooks are invoked.
config_test_config_test_predelete function core/modules/config/tests/config_test/config_test.hooks.inc Implements hook_config_test_predelete().
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.
EntityOperations::entityPredelete function core/modules/workspaces/src/EntityOperations.php Acts on an entity before it is deleted.
EntityUnitTest::testPreDelete function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::preDelete[[api-linebreak]]
entity_crud_hook_test_block_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for block entities.
entity_crud_hook_test_comment_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for comment entities.
entity_crud_hook_test_entity_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_entity_predelete().
entity_crud_hook_test_file_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for file entities.
entity_crud_hook_test_node_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for node entities.
entity_crud_hook_test_taxonomy_term_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_vocabulary_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_vocabulary entities.
entity_crud_hook_test_user_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for user entities.
Feed::preDelete function core/modules/aggregator/src/Entity/Feed.php Acts on entities before they are deleted and before hooks are invoked.
file_test_file_predelete function core/modules/file/tests/file_test/file_test.module Implements hook_ENTITY_TYPE_predelete() for file entities.
forum_node_predelete function core/modules/forum/forum.module Implements hook_ENTITY_TYPE_predelete() for node entities.
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.
statistics_node_predelete function core/modules/statistics/statistics.module Implements hook_ENTITY_TYPE_predelete() for node entities.
TestBase::filePreDeleteCallback function core/modules/simpletest/src/TestBase.php Ensures test files are deletable.
tracker_node_predelete function core/modules/tracker/tracker.module Implements hook_ENTITY_TYPE_predelete() for node entities.
workspaces_entity_predelete function core/modules/workspaces/workspaces.module Implements hook_entity_predelete().

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