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 10.3.x for hook_
  5. Search 11.x for hook_
  6. Other projects
Title Object type File name Summary
HelpHooks class core/modules/help/src/Hook/HelpHooks.php Hook implementations for help.
HelpHooks.php file core/modules/help/src/Hook/HelpHooks.php
HelpHooks::blockViewHelpBlockAlter function core/modules/help/src/Hook/HelpHooks.php Implements hook_block_view_BASE_BLOCK_ID_alter().
HelpHooks::help function core/modules/help/src/Hook/HelpHooks.php Implements hook_help().
HelpHooks::modulesInstalled function core/modules/help/src/Hook/HelpHooks.php Implements hook_modules_installed().
HelpHooks::modulesUninstalled function core/modules/help/src/Hook/HelpHooks.php Implements hook_modules_uninstalled().
HelpHooks::searchUpdate function core/modules/help/src/Hook/HelpHooks.php Ensure that search is updated when extensions are installed or uninstalled.
HelpHooks::theme function core/modules/help/src/Hook/HelpHooks.php Implements hook_theme().
HelpHooks::themesInstallOrUninstall function core/modules/help/src/Hook/HelpHooks.php Implements hook_themes_installed().
HelpPageTestHooks class core/modules/help/tests/modules/help_page_test/src/Hook/HelpPageTestHooks.php Hook implementations for help_page_test.
HelpPageTestHooks.php file core/modules/help/tests/modules/help_page_test/src/Hook/HelpPageTestHooks.php
HelpPageTestHooks::help function core/modules/help/tests/modules/help_page_test/src/Hook/HelpPageTestHooks.php Implements hook_help().
HelpTestHooks class core/modules/help/tests/modules/help_test/src/Hook/HelpTestHooks.php Hook implementations for help_test.
HelpTestHooks.php file core/modules/help/tests/modules/help_test/src/Hook/HelpTestHooks.php
HelpTestHooks::help function core/modules/help/tests/modules/help_test/src/Hook/HelpTestHooks.php Implements hook_help().
HelpThemeHooks class core/modules/help/src/Hook/HelpThemeHooks.php Hook implementations for help.
HelpThemeHooks.php file core/modules/help/src/Hook/HelpThemeHooks.php
HelpThemeHooks::preprocessBlock function core/modules/help/src/Hook/HelpThemeHooks.php Implements hook_preprocess_HOOK() for block templates.
HelpTopicsTestHooks class core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php Hook implementations for help_topics_test.
HelpTopicsTestHooks.php file core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php
HelpTopicsTestHooks::help function core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php Implements hook_help().
HelpTopicsTestHooks::helpTopicsInfoAlter function core/modules/help/tests/modules/help_topics_test/src/Hook/HelpTopicsTestHooks.php Implements hook_help_topics_info_alter().
Hook.php file core/lib/Drupal/Core/Hook/Attribute/Hook.php
Hook::__construct function core/lib/Drupal/Core/Hook/Attribute/Hook.php Constructs a Hook attribute object.
HookAlterOrderTest class core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests Hook Alter Order.
HookAlterOrderTest.php file core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php
HookAlterOrderTest::$modules property core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Modules to install.
HookAlterOrderTest::alter function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Invokes ModuleHandler->alter() and returns the altered array.
HookAlterOrderTest::assertAlterCallOrder function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Asserts the call order from an alter call.
HookAlterOrderTest::testAlterOrder function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Test ordering alter calls.
HookAlterOrderTest::testProceduralModuleImplementsAlterOrder function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests procedural implementations of module implements alter ordering.
HookAlterOrderTest::testReorderAlterMissingTarget function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests #[ReorderHook] attributes with missing target.
HookAlterOrderTest::testReorderCrossHookAlter function core/tests/Drupal/KernelTests/Core/Hook/HookAlterOrderTest.php Tests #[ReorderHook] targeting other hooks.
HookAttributeInterface interface core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php Common interface for attributes used for hook discovery.
HookAttributeInterface.php file core/lib/Drupal/Core/Hook/Attribute/HookAttributeInterface.php
HookAttributeInvokeHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Test Hook attribute named arguments.
HookAttributeInvokeHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php
HookAttributeInvokeHook::__invoke function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeInvokeHook.php Implements hook_cache_flush().
HookAttributeNamedArgumentsHook class core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Test Hook attribute named arguments.
HookAttributeNamedArgumentsHook.php file core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php
HookAttributeNamedArgumentsHook::flush function core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php Implements hook_cache_flush().
HookCollectorKeyValueWritePass class core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php Stores hook implementations in keyvalue and clears cache.
HookCollectorKeyValueWritePass.php file core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php
HookCollectorKeyValueWritePass::process function core/lib/Drupal/Core/Hook/HookCollectorKeyValueWritePass.php
HookCollectorPass class core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects and registers hook implementations.
HookCollectorPass.php file core/lib/Drupal/Core/Hook/HookCollectorPass.php
HookCollectorPass::$moduleImplementsAlters property core/lib/Drupal/Core/Hook/HookCollectorPass.php A list of functions implementing hook_module_implements_alter().
HookCollectorPass::$oopImplementations property core/lib/Drupal/Core/Hook/HookCollectorPass.php OOP implementation module names keyed by hook name and "$class::$method".
HookCollectorPass::$orderOperations property core/lib/Drupal/Core/Hook/HookCollectorPass.php Order operations grouped by hook name and weight.
HookCollectorPass::$preprocessForSuggestions property core/lib/Drupal/Core/Hook/HookCollectorPass.php Preprocess suggestions discovered in modules.

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