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
BlockContent::preDelete function core/modules/block_content/src/Entity/BlockContent.php
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.
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
ConfigTestHooksHooks::configTestPredelete function core/modules/config/tests/config_test/src/Hook/ConfigTestHooksHooks.php Implements hook_config_test_predelete().
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
EntityCrudHookTestHooks::blockPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for block entities.
EntityCrudHookTestHooks::commentPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for comment entities.
EntityCrudHookTestHooks::entityPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_entity_predelete().
EntityCrudHookTestHooks::filePredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for file entities.
EntityCrudHookTestHooks::nodePredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for node entities.
EntityCrudHookTestHooks::taxonomyTermPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for taxonomy_term entities.
EntityCrudHookTestHooks::taxonomyVocabularyPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for taxonomy_vocabulary entities.
EntityCrudHookTestHooks::userPredelete function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_predelete() for user entities.
EntityDisplayModeBase::preDelete function core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php
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
EntityTestHooks::entityPredelete function core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php Implements hook_entity_predelete().
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.
FieldConfig::preDelete function core/modules/field/src/Entity/FieldConfig.php
FieldStorageConfig::preDelete function core/modules/field/src/Entity/FieldStorageConfig.php
File::preDelete function core/modules/file/src/Entity/File.php
FileHooks::filePredelete function core/modules/file/src/Hook/FileHooks.php Implements hook_ENTITY_TYPE_predelete() for file entities.
FileTestHooks::filePredelete function core/modules/file/tests/file_test/src/Hook/FileTestHooks.php 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.
ImageHooks::filePredelete function core/modules/image/src/Hook/ImageHooks.php Implements hook_ENTITY_TYPE_predelete() for file entities.
JsonapiTestNonCacheableMethodsHooks::entityPredelete function core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/src/Hook/JsonapiTestNonCacheableMethodsHooks.php Implements hook_entity_predelete().
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
MenuLinkContent::preDelete function core/modules/menu_link_content/src/Entity/MenuLinkContent.php
MenuLinkContentHooks::entityPredelete function core/modules/menu_link_content/src/Hook/MenuLinkContentHooks.php Implements hook_entity_predelete().
Node::preDelete function core/modules/node/src/Entity/Node.php
NodeHooks1::userPredelete function core/modules/node/src/Hook/NodeHooks1.php Implements hook_ENTITY_TYPE_predelete() for user entities.
ShortcutSet::preDelete function core/modules/shortcut/src/Entity/ShortcutSet.php

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