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
TestHookInvoke::hookInvokeSingleArrayTwo function core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php This hook returns an array.
TestHookInvoke::hookInvokeSingleClassOne function core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php This hook returns a stdClass.
TestHookInvoke::hookInvokeSingleClassTwo function core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php This hook returns a stdClass.
TestHookInvoke::hookInvokeSingleStringOne function core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php This hook returns a string.
TestHookInvoke::hookInvokeSingleStringTwo function core/modules/system/tests/modules/hook_single_invoke/src/Hook/TestHookInvoke.php This hook returns a string.
TestHookLast class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookLast.php This class contains hook implementations.
TestHookLast class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookLast.php This class contains hook implementations.
TestHookLast.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookLast.php
TestHookLast.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookLast.php
TestHookLast::hookLast function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookLast.php This pair tests OrderLast.
TestHookLast::hookLast function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookLast.php This pair tests OrderLast.
TestHookOrderExtraTypes class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php This class contains hook implementations.
TestHookOrderExtraTypes class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php This class contains hook implementations.
TestHookOrderExtraTypes.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php
TestHookOrderExtraTypes.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php
TestHookOrderExtraTypes::customHookExtraTypes function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php This pair tests OrderAfter with ExtraTypes.
TestHookOrderExtraTypes::customHookExtraTypes function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php This pair tests OrderAfter with ExtraTypes.
TestHookRemove class core/modules/system/tests/modules/hook_test_remove/src/Hook/TestHookRemove.php Add a hook here, then remove it with another attribute.
TestHookRemove.php file core/modules/system/tests/modules/hook_test_remove/src/Hook/TestHookRemove.php
TestHookRemove::hookDoNotRun function core/modules/system/tests/modules/hook_test_remove/src/Hook/TestHookRemove.php This hook should not be run because the next hook replaces it.
TestHookRemove::hookDoRun function core/modules/system/tests/modules/hook_test_remove/src/Hook/TestHookRemove.php This hook should run and prevent custom_hook1.
TestHookReorderHookFirst class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookReorderHookFirst.php This class contains hook implementations.
TestHookReorderHookFirst.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookReorderHookFirst.php
TestHookReorderHookFirst::customHookOverride function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookReorderHookFirst.php This pair tests ReorderHook.
TestHookReorderHookLast class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookReorderHookLast.php This class contains hook implementations.
TestHookReorderHookLast.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookReorderHookLast.php
TestHookReorderHookLast::customHookOverride function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookReorderHookLast.php This pair tests ReorderHook.
TestHtmxHooks class core/modules/system/tests/modules/test_htmx/src/Hook/TestHtmxHooks.php Hooks for the test_htmx module.
TestHtmxHooks.php file core/modules/system/tests/modules/test_htmx/src/Hook/TestHtmxHooks.php
TestHtmxHooks::boost function core/modules/system/tests/modules/test_htmx/src/Hook/TestHtmxHooks.php Implements hook_preprocess_HOOK() for html.
TestHtmxHooks::__construct function core/modules/system/tests/modules/test_htmx/src/Hook/TestHtmxHooks.php
TestingHooksProfile class core/profiles/tests/testing_hooks/src/Hook/TestingHooksProfile.php Hook implementation on behalf of another module.
TestingHooksProfile.php file core/profiles/tests/testing_hooks/src/Hook/TestingHooksProfile.php
TestingHooksProfile::flush function core/profiles/tests/testing_hooks/src/Hook/TestingHooksProfile.php Implements hook_cache_flush().
TestingProfileHooksTest class core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php Tests installing the Testing profile with update notifications on.
TestingProfileHooksTest.php file core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php
TestingProfileHooksTest::$defaultTheme property core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php The theme to install as the default for testing.
TestingProfileHooksTest::$profile property core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php The profile to install as a basis for testing.
TestingProfileHooksTest::testHookPickup function core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php Test hooks are picked up.
TestingSiteConfigHooks class core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php Simulates a hook class with a dependency chain requiring the kernel.
TestingSiteConfigHooks.php file core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php
TestingSiteConfigHooks::userLoad function core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php Implements hook_user_load().
TestingSiteConfigHooks::__construct function core/profiles/tests/testing_site_config/src/Hook/TestingSiteConfigHooks.php
testing_hooks.info.yml file core/profiles/tests/testing_hooks/testing_hooks.info.yml core/profiles/tests/testing_hooks/testing_hooks.info.yml
testing_hooks.profile file core/profiles/tests/testing_hooks/testing_hooks.profile
testing_hooks_cache_flush function core/profiles/tests/testing_hooks/testing_hooks.profile This implements cache_flush.
testing_hooks_install_tasks function core/profiles/tests/testing_install_tasks_interface/testing_install_tasks_interface.profile This implements install_tasks.
testing_hooks_install_tasks_alter function core/profiles/tests/testing_install_tasks_interface/testing_install_tasks_interface.profile This implements install_tasks_alter.
TestInstallerThemeHooks class core/modules/system/tests/themes/test_installer_theme/src/Hook/TestInstallerThemeHooks.php Form alter hooks for installer tests.
TestInstallerThemeHooks.php file core/modules/system/tests/themes/test_installer_theme/src/Hook/TestInstallerThemeHooks.php

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