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
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().
HistoryHooks class core/modules/history/src/Hook/HistoryHooks.php Hook implementations for history.
HistoryHooks.php file core/modules/history/src/Hook/HistoryHooks.php
HistoryHooks::commentView function core/modules/history/src/Hook/HistoryHooks.php Implements hook_ENTITY_TYPE_view for comment entities.
HistoryHooks::cron function core/modules/history/src/Hook/HistoryHooks.php Implements hook_cron().
HistoryHooks::help function core/modules/history/src/Hook/HistoryHooks.php Implements hook_help().
HistoryHooks::nodeDelete function core/modules/history/src/Hook/HistoryHooks.php Implements hook_ENTITY_TYPE_delete() for node entities.
HistoryHooks::nodeViewAlter function core/modules/history/src/Hook/HistoryHooks.php Implements hook_ENTITY_TYPE_view_alter() for node entities.
HistoryHooks::userCancel function core/modules/history/src/Hook/HistoryHooks.php Implements hook_user_cancel().
HistoryHooks::userDelete function core/modules/history/src/Hook/HistoryHooks.php Implements hook_ENTITY_TYPE_delete() for user entities.
HistoryHooks::__construct function core/modules/history/src/Hook/HistoryHooks.php Constructs a new HistoryHooks object.
HistoryTokensHooks class core/modules/history/src/Hook/HistoryTokensHooks.php Token hook implementations for history.
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

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