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
TestDeprecatedSuggestionThemeHooks::themeSuggestionsAlter function core/modules/system/tests/themes/test_deprecated_suggestion_theme/src/Hook/TestDeprecatedSuggestionThemeHooks.php Implements hook_theme_suggestions_alter().
TestHookAfter class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfter.php This class contains hook implementations.
TestHookAfter class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfter.php This class contains hook implementations.
TestHookAfter.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfter.php
TestHookAfter.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfter.php
TestHookAfter::hookAfter function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfter.php This pair tests OrderAfter.
TestHookAfter::hookAfter function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfter.php This pair tests OrderAfter.
TestHookAfterClassMethod class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This class contains hook implementations.
TestHookAfterClassMethod class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This class contains hook implementations.
TestHookAfterClassMethod.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php
TestHookAfterClassMethod.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php
TestHookAfterClassMethod::hookAfterClassMethod function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This pair tests OrderAfter with a passed class and method.
TestHookAfterClassMethod::hookAfterClassMethod function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This pair tests OrderAfter with a passed class and method.
TestHookBefore class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookBefore.php This class contains hook implementations.
TestHookBefore class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookBefore.php This class contains hook implementations.
TestHookBefore.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookBefore.php
TestHookBefore.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookBefore.php
TestHookBefore::hookBefore function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookBefore.php This pair tests OrderBefore.
TestHookBefore::hookBefore function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookBefore.php This pair tests OrderBefore.
TestHookClass class core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Class used to test ModuleHandler::hasImplementations()
TestHookClass::someMethod function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Example method.
TestHookCollectionHooks class core/modules/system/tests/themes/HookCollector/oop_hook_theme/src/Hook/TestHookCollectionHooks.php Contains hooks for testing hook collection.
TestHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme/src/Hook/TestHookCollectionHooks.php
TestHookCollectionHooks::testHookAlter function core/modules/system/tests/themes/HookCollector/oop_hook_theme/src/Hook/TestHookCollectionHooks.php #[Hook('test_hook_alter')]
TestHookFirst class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookFirst.php This class contains hook implementations.
TestHookFirst class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookFirst.php This class contains hook implementations.
TestHookFirst.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookFirst.php
TestHookFirst.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookFirst.php
TestHookFirst::hookFirst function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookFirst.php This pair tests OrderFirst.
TestHookFirst::hookFirst function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookFirst.php This pair tests OrderFirst.
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.

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