Search for hook

  1. Search 7.x for hook
  2. Search 8.9.x for hook
  3. Search 10.3.x for hook
  4. Search 11.x for hook
  5. Other projects
Title Object type File name Summary
BlockHookOperationTest class core/modules/block/tests/src/Functional/BlockHookOperationTest.php Tests for Block module regarding hook_entity_operations_alter().
BlockHookOperationTest.php file core/modules/block/tests/src/Functional/BlockHookOperationTest.php
BlockHookOperationTest::$defaultTheme property core/modules/block/tests/src/Functional/BlockHookOperationTest.php The theme to install as the default for testing.
BlockHookOperationTest::$modules property core/modules/block/tests/src/Functional/BlockHookOperationTest.php Modules to install.
BlockHookOperationTest::setUp function core/modules/block/tests/src/Functional/BlockHookOperationTest.php
BlockHookOperationTest::testBlockOperationAlter function core/modules/block/tests/src/Functional/BlockHookOperationTest.php Tests the block list to see if the test_operation link is added.
BlockTemplateSuggestionsTest::testBlockThemeHookSuggestions function core/modules/block/tests/src/Kernel/BlockTemplateSuggestionsTest.php Tests template suggestions from block_theme_suggestions_block().
BookTest::testHookNodeLoadAccess function core/modules/book/tests/src/Functional/BookTest.php Ensure the loaded book in hook_node_load() does not depend on the user.
BulkDeleteTest::checkHooksInvocations function core/modules/field/tests/src/Kernel/BulkDeleteTest.php Tests that the expected hooks have been invoked on the expected entities.
ComposerHookTest class core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php Tests Composer Hooks that run scaffold operations.
ComposerHookTest.php file core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
ComposerHookTest::$fileSystem property core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php The Symfony FileSystem component.
ComposerHookTest::$fixtures property core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php The Fixtures object.
ComposerHookTest::$fixturesDir property core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php Directory to perform the tests in.
ComposerHookTest::setUp function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
ComposerHookTest::tearDown function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
ComposerHookTest::testComposerHooks function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php Tests to see if scaffold operation runs at the correct times.
ComposerHookTest::testScaffoldMessagesDoNotPrintTwice function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php Tests to see if scaffold messages are omitted when running scaffold twice.
ConfigEntityStorage::invokeHook function core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php Invokes a hook on behalf of the entity.
ConfigImporterTest::testIsSyncingInHooks function core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php Tests the isSyncing flags.
config_test.hooks.inc file core/modules/config/tests/config_test/config_test.hooks.inc Fake third-party hook implementations for ConfigTest entities.
ContentEntityStorageBase::invokeHook function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
ContentEntityStorageBase::invokeStorageLoadHook function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Invokes hook_entity_storage_load().
ContentEntityStorageBase::invokeTranslationHooks function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Checks translation statuses and invoke the related hooks if needed.
ContentTranslationEntityBundleInfoTest::testHookInvocationOrder function core/modules/content_translation/tests/src/Kernel/ContentTranslationEntityBundleInfoTest.php Tests that modules can know whether bundles are translatable.
DefaultPluginManager::$alterHook property core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Name of the alter hook if one should be invoked.
DependencyHookInvocationTest class core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php Tests the hook invocation for determining update dependencies.
DependencyHookInvocationTest.php file core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php
DependencyHookInvocationTest::$defaultTheme property core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php
DependencyHookInvocationTest::$modules property core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php Modules to enable.
DependencyHookInvocationTest::setUp function core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php
DependencyHookInvocationTest::testHookUpdateDependencies function core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php Tests the structure of the array returned by hook_update_dependencies().
deprecation_test_deprecated_hook function core/modules/system/tests/modules/deprecation_test/deprecation_test.module Implements hook_deprecated_hook().
EditorFileUsageTest::testEditorEntityHooks function core/modules/editor/tests/src/Kernel/EditorFileUsageTest.php Tests the configurable text editor manager.
Entity CRUD, editing, and view hooks group core/lib/Drupal/Core/Entity/entity.api.php Hooks used in various entity operations.
EntityAccessControlHandler::processAccessHookResults function core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php Determines entity access.
EntityAccessControlHandlerTest::testHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php Tests hook invocations.
EntityCrudHookTest class core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests entity CRUD via hooks.
EntityCrudHookTest.php file core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
EntityCrudHookTest::$ids property core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
EntityCrudHookTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Modules to enable.
EntityCrudHookTest::assertHookMessageOrder function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Checks the order of CRUD hook execution messages.
EntityCrudHookTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
EntityCrudHookTest::testBlockHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on blocks.
EntityCrudHookTest::testCommentHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on comments.
EntityCrudHookTest::testEntityRollback function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests rollback from failed entity save.
EntityCrudHookTest::testFileHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on files.
EntityCrudHookTest::testNodeHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on nodes.
EntityCrudHookTest::testTaxonomyTermHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on taxonomy terms.
EntityCrudHookTest::testTaxonomyVocabularyHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php Tests hook invocations for CRUD operations on taxonomy vocabularies.

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