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 main for hook_
  6. Other projects
Title Object type File name Summary
HistoryTokensHooks.php file core/modules/history/src/Hook/HistoryTokensHooks.php
HistoryTokensHooks::tokenInfo function core/modules/history/src/Hook/HistoryTokensHooks.php Implements hook_token_info().
HistoryTokensHooks::tokens function core/modules/history/src/Hook/HistoryTokensHooks.php Implements hook_tokens().
HistoryTokensHooksTest class core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php Tests for HistoryTokensHooks.
HistoryTokensHooksTest.php file core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php
HistoryTokensHooksTest::testTokenInfoWithoutCommentModuleInstalled function core/modules/history/tests/src/Unit/HistoryTokensHooksTest.php Tests that tokenInfo() handles missing comment module gracefully.
HistoryViewsHooks class core/modules/history/src/Hook/HistoryViewsHooks.php Hook implementations for history.
HistoryViewsHooks.php file core/modules/history/src/Hook/HistoryViewsHooks.php
HistoryViewsHooks::viewsData function core/modules/history/src/Hook/HistoryViewsHooks.php Implements hook_views_data().
HistoryViewsHooks::viewsDataAlter function core/modules/history/src/Hook/HistoryViewsHooks.php Implements hook_views_data_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::$groupIncludes property core/lib/Drupal/Core/Hook/HookCollectorPass.php Include files, keyed by the $group part of "/$module.$group.inc".
HookCollectorPass::$hookInfo property core/lib/Drupal/Core/Hook/HookCollectorPass.php A list of functions implementing hook_hook_info().
HookCollectorPass::$includes property core/lib/Drupal/Core/Hook/HookCollectorPass.php A map of include files by function name.
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.
HookCollectorPass::$proceduralImplementations property core/lib/Drupal/Core/Hook/HookCollectorPass.php Procedural implementation module names by hook name.
HookCollectorPass::$removeHookIdentifiers property core/lib/Drupal/Core/Hook/HookCollectorPass.php Lists of implementation identifiers to remove, keyed by hook name.
HookCollectorPass::addProceduralImplementation function core/lib/Drupal/Core/Hook/HookCollectorPass.php Adds a procedural hook implementation.
HookCollectorPass::applyOrderOperations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Applies order operations to a hook implementation list.
HookCollectorPass::calculateImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Calculates the ordered implementations.
HookCollectorPass::checkForProceduralOnlyHooks function core/lib/Drupal/Core/Hook/HookCollectorPass.php Checks for hooks which can't be supported in classes.
HookCollectorPass::collectAllHookImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects all hook implementations.
HookCollectorPass::collectIncludesPerHook function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects include files by hook name.
HookCollectorPass::collectModuleHookImplementations function core/lib/Drupal/Core/Hook/HookCollectorPass.php Collects procedural and Attribute hook implementations.

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