Search for preDelete

  1. Search 7.x for preDelete
  2. Search 8.9.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
BlockContent::preDelete function core/modules/block_content/src/Entity/BlockContent.php Acts on entities before they are deleted and before hooks are invoked.
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.
comment_entity_predelete function core/modules/comment/comment.module Implements hook_entity_predelete().
comment_user_predelete function core/modules/comment/comment.module 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.
ConfigurableLanguage::preDelete function core/modules/language/src/Entity/ConfigurableLanguage.php
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.
EntityTestBundleClass::$preDeleteCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::preDelete() was called.
EntityTestBundleClass::preDelete function core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php Acts on entities before they are deleted and before hooks are invoked.
EntityUnitTest::testPreDelete function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::preDelete
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.
entity_test_entity_predelete function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_predelete().
Feed::preDelete function core/modules/aggregator/src/Entity/Feed.php Acts on entities before they are deleted and before hooks are invoked.
FieldConfig::preDelete function core/modules/field/src/Entity/FieldConfig.php Acts on entities before they are deleted and before hooks are invoked.
FieldStorageConfig::preDelete function core/modules/field/src/Entity/FieldStorageConfig.php Acts on entities before they are deleted and before hooks are invoked.
File::preDelete function core/modules/file/src/Entity/File.php Acts on entities before they are deleted and before hooks are invoked.
file_file_predelete function core/modules/file/file.module Implements hook_ENTITY_TYPE_predelete() for file entities.
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.
image_file_predelete function core/modules/image/image.module Implements hook_ENTITY_TYPE_predelete() for file entities.
jsonapi_test_non_cacheable_methods_entity_predelete function core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/jsonapi_test_non_cacheable_methods.module Implements hook_entity_predelete().
Menu::preDelete function core/modules/system/src/Entity/Menu.php Acts on entities before they are deleted and before hooks are invoked.
MenuLinkContent::preDelete function core/modules/menu_link_content/src/Entity/MenuLinkContent.php Acts on entities before they are deleted and before hooks are invoked.
menu_link_content_entity_predelete function core/modules/menu_link_content/menu_link_content.module Implements hook_entity_predelete().
Node::preDelete function core/modules/node/src/Entity/Node.php Acts on entities before they are deleted and before hooks are invoked.
node_user_predelete function core/modules/node/node.module Implements hook_ENTITY_TYPE_predelete() for user entities.
ShortcutSet::preDelete function core/modules/shortcut/src/Entity/ShortcutSet.php Acts on entities before they are deleted and before hooks are invoked.
statistics_node_predelete function core/modules/statistics/statistics.module Implements hook_ENTITY_TYPE_predelete() for node entities.
taxonomy_node_predelete function core/modules/taxonomy/taxonomy.module Implements hook_ENTITY_TYPE_predelete() for node entities.
tracker_node_predelete function core/modules/tracker/tracker.module Implements hook_ENTITY_TYPE_predelete() for node entities.
View::preDelete function core/modules/views/src/Entity/View.php Acts on entities before they are deleted and before hooks are invoked.
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.
Workspace::preDelete function core/modules/workspaces/src/Entity/Workspace.php Acts on entities before they are deleted and before hooks are invoked.
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.