Search for hook_

  1. Search 7.x for hook_
  2. Search 9.5.x for hook_
  3. Search 8.9.x for hook_
  4. Search 11.x for hook_
  5. Other projects
Title Object type File name Summary
ModuleHandlerDeprecatedHookTest::$modules property core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php Modules to install.
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().
ModuleHandlerTest::testGetHookInfo function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests hook_hook_info() fetching through getHookInfo().
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
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_hook_info function core/modules/system/tests/modules/module_test/module_test.module Implements hook_hook_info().
NodeTemplateSuggestionsTest::testNodeThemeHookSuggestions function core/modules/node/tests/src/Kernel/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 install.
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.
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.
theme-test-deprecations-hook-theme.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-hook-theme.html.twig {# Test variables deprecated in hook_theme(). #}
{{ foo }}
ThemeManager::buildThemeHookSuggestions function core/lib/Drupal/Core/Theme/ThemeManager.php Builds theme hook suggestions for a theme hook with variables.
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]]
ToolbarHookToolbarTest class core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Tests the implementation of hook_toolbar() by a module.
ToolbarHookToolbarTest.php file core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php
ToolbarHookToolbarTest::$adminUser property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php A user with permission to access the administrative toolbar.
ToolbarHookToolbarTest::$defaultTheme property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php The theme to install as the default for testing.
ToolbarHookToolbarTest::$modules property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Modules to install.
ToolbarHookToolbarTest::setUp function core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php
ToolbarHookToolbarTest::testHookToolbar function core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Tests for a tab and tray provided by a module implementing hook_toolbar().
TwigDeprecationsTest::testHookThemeDeprecations function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test deprecating variables at definition in hook_theme().
update.update_hook_registry service core/core.services.yml Drupal\Core\Update\UpdateHookRegistry
update.update_hook_registry_factory service core/core.services.yml Drupal\Core\Update\UpdateHookRegistryFactory
UpdateContribTest::testHookUpdateStatusAlter function core/modules/update/tests/src/Functional/UpdateContribTest.php Checks that hook_update_status_alter() works to change a status.
UpdateHookRegistry class core/lib/Drupal/Core/Update/UpdateHookRegistry.php Provides module updates versions handling.
UpdateHookRegistry.php file core/lib/Drupal/Core/Update/UpdateHookRegistry.php
UpdateHookRegistry::$allAvailableSchemaVersions property core/lib/Drupal/Core/Update/UpdateHookRegistry.php A static cache of schema currentVersions per module.
UpdateHookRegistry::$enabledModules property core/lib/Drupal/Core/Update/UpdateHookRegistry.php A list of enabled modules.
UpdateHookRegistry::$equivalentUpdates property core/lib/Drupal/Core/Update/UpdateHookRegistry.php The core.equivalent_updates key value storage.

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