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
MenuRouterTest::doTestHookMenuIntegration function core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php Tests local tasks with route placeholders.
ModuleHandler::$hookInfo property core/lib/Drupal/Core/Extension/ModuleHandler.php Information returned by hook_hook_info() implementations.
ModuleHandler::buildHookInfo function core/lib/Drupal/Core/Extension/ModuleHandler.php Builds hook_hook_info() information.
ModuleHandler::getHookInfo function core/lib/Drupal/Core/Extension/ModuleHandler.php Retrieves a list of hooks that are declared through hook_hook_info().
ModuleHandler::implementsHook function core/lib/Drupal/Core/Extension/ModuleHandler.php Returns whether a given module implements a given hook.
ModuleHandlerDeprecatedHookTest class core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php Test whether deprecated hook invocations trigger errors.
ModuleHandlerDeprecatedHookTest.php file core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
ModuleHandlerDeprecatedHookTest::$modules property core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php Modules to enable.
ModuleHandlerDeprecatedHookTest::testAlterDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::alterDeprecated[[api-linebreak]]
ModuleHandlerDeprecatedHookTest::testInvokeAllDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::invokeAllDeprecated[[api-linebreak]]
ModuleHandlerDeprecatedHookTest::testInvokeDeprecated function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php @covers ::invokeDeprecated[[api-linebreak]]
ModuleHandlerDeprecatedHookUnimplementedTest class core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php Test whether unimplemented deprecated hook invocations trigger errors.
ModuleHandlerDeprecatedHookUnimplementedTest.php file core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php
ModuleHandlerDeprecatedHookUnimplementedTest::testUnimplementedHooks function core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookUnimplementedTest.php @covers ::alterDeprecated[[api-linebreak]]
@covers ::invokeAllDeprecated[[api-linebreak]]
@covers ::invokeDeprecated[[api-linebreak]]
ModuleHandlerInterface::getHookInfo function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Retrieves a list of hooks that are declared through hook_hook_info().
ModuleHandlerInterface::implementsHook function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Returns whether a given module implements a given hook.
ModuleHandlerTest::testGetHookInfo function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests hook_hook_info() fetching through getHookInfo().
ModuleHandlerTest::testImplementsHook function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests deprecation of the ::implementsHook method.
ModuleHandlerTest::testImplementsHookModuleEnabled function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests implementations methods when module is enabled.
ModuleInstallerTest::testKernelRebuildDuringHookInstall function core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php Ensure that rebuilding the container in hook_install() works.
ModuleTestController::hookDynamicLoadingInvoke function core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php Returns dynamically invoked hook results for the 'module_test' module.
ModuleTestController::hookDynamicLoadingInvokeAll function core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php Returns dynamically invoked hook results for all modules.
module_handler_test_added.hook.inc file core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc Include file for test module.
module_handler_test_added_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc Test function.
module_handler_test_all1_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module Returns an array to test nested merge in invoke all.
module_handler_test_all2_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module Test function.
module_handler_test_hook function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module
module_handler_test_hook_include function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc Test hook.
module_handler_test_hook_info function core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module Implements hook_hook_info().
module_handler_test_no_hook.info.yml file core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_no_hook/module_handler_test_no_hook.info.yml
module_test_altered_test_hook function core/modules/system/tests/modules/module_test/module_test.implementations.inc Implements hook_altered_test_hook().
module_test_hook_info function core/modules/system/tests/modules/module_test/module_test.module Implements hook_hook_info().
module_test_test_hook function core/modules/system/tests/modules/module_test/module_test.file.inc Implements hook_test_hook().
NodeTemplateSuggestionsTest::testNodeThemeHookSuggestions function core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php Tests if template_preprocess_node() generates the correct suggestions.
PageRenderTest::assertPageRenderHookExceptions function core/modules/system/tests/src/Kernel/Common/PageRenderTest.php Asserts whether expected exceptions are thrown for invalid hook implementations.
PageRenderTest::testHookPageAlter function core/modules/system/tests/src/Kernel/Common/PageRenderTest.php Tests hook_page_attachments_alter() exceptions.
PageRenderTest::testHookPageAttachmentsExceptions function core/modules/system/tests/src/Kernel/Common/PageRenderTest.php Tests hook_page_attachments() exceptions.
PathHooksTest class core/modules/path_alias/tests/src/Kernel/PathHooksTest.php @coversDefaultClass \Drupal\path_alias\Entity\PathAlias[[api-linebreak]]
PathHooksTest.php file core/modules/path_alias/tests/src/Kernel/PathHooksTest.php
PathHooksTest::$modules property core/modules/path_alias/tests/src/Kernel/PathHooksTest.php Modules to enable.
PathHooksTest::setUp function core/modules/path_alias/tests/src/Kernel/PathHooksTest.php
PathHooksTest::testPathHooks function core/modules/path_alias/tests/src/Kernel/PathHooksTest.php Tests that the PathAlias entity clears caches correctly.
Registry::getBaseHook function core/lib/Drupal/Core/Theme/Registry.php Returns the base hook for a given hook suggestion.
SearchPageOverrideTest::testSearchPageHook function core/modules/search/tests/src/Functional/SearchPageOverrideTest.php
SystemAuthorizeTest::testFileTransferHooks function core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php Tests the FileTransfer hooks.
system_hook_info function core/modules/system/system.module Implements hook_hook_info().
TaxonomyQueryAlterTest::setupQueryTagTestHooks function core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php Sets up the hooks in the test module.
TemporaryQueryGuard::getAccessResultsFromEntityFilterHook function core/modules/jsonapi/src/Access/TemporaryQueryGuard.php Gets the combined access result for each JSONAPI_FILTER_AMONG_* subset.
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]
@covers ::replace[[api-linebreak]]
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]

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