Search for hook

  1. Search 7.x for hook
  2. Search 9.5.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
AdminThemeUpdateTest::testUpdateHookN function core/modules/system/tests/src/Functional/Update/AdminThemeUpdateTest.php Tests that system.theme:admin is updated as expected.
BlockConditionMissingSchemaUpdateTest::testUpdateHookN function core/modules/block/tests/src/Functional/Update/BlockConditionMissingSchemaUpdateTest.php Tests that block context mapping is updated properly.
BlockContextMappingUpdateTest::testUpdateHookN function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php Tests that block context mapping is updated properly.
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
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.
BlockRemoveDisabledRegionUpdateTest::testUpdateHookN function core/modules/block/tests/src/Functional/Update/BlockRemoveDisabledRegionUpdateTest.php Tests that block context mapping is updated properly.
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.
CacheabilityMetadataUpdateTest::testUpdateHookN function core/modules/views/tests/src/Functional/Update/CacheabilityMetadataUpdateTest.php Tests that views cacheability metadata updated properly.
CommentAdminViewUpdateTest::testCommentAdminPostUpdateHook function core/modules/comment/tests/src/Functional/Update/CommentAdminViewUpdateTest.php Tests that comment admin view is enabled after update.
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 Test to see if scaffold operation runs at the correct times.
ComposerHookTest::testScaffoldMessagesDoNotPrintTwice function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php Test 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 that the hook invocation for determining update dependencies works
correctly.
DependencyHookInvocationTest.php file core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php
DependencyHookInvocationTest::$defaultTheme property core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php The theme to install as the default for testing.
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 Test the structure of the array returned by hook_update_dependencies().
DeprecatedPathHooksTest class core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php @coversDefaultClass \Drupal\Core\Path\AliasStorage[[api-linebreak]]
DeprecatedPathHooksTest.php file core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php
DeprecatedPathHooksTest::$modules property core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php Modules to enable.
DeprecatedPathHooksTest::setUp function core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php
DeprecatedPathHooksTest::testDelete function core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php @covers ::delete[[api-linebreak]]
DeprecatedPathHooksTest::testInsert function core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php @covers ::save[[api-linebreak]]
DeprecatedPathHooksTest::testUpdate function core/modules/system/tests/src/Kernel/DeprecatedPathHooksTest.php @covers ::save[[api-linebreak]]
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 We grant access to the entity if both of these conditions are met:
EntityAccessControlHandlerTest::testHooks function core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php Tests hook invocations.

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