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. Other projects
Title Object type File name Summary
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.
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.
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.
TestInvalidHookCollectionHooks class core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php Contains hooks that will throw exceptions during collection.
TestInvalidHookCollectionHooks class core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php Contains hooks that will throw exceptions during collection.
TestInvalidHookCollectionHooks class core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/src/Hook/TestInvalidHookCollectionHooks.php Contains hooks that will throw exceptions during collection.
TestInvalidHookCollectionHooks class core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php Contains hooks that will throw exceptions during collection.
TestInvalidHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/src/Hook/TestInvalidHookCollectionHooks.php
TestInvalidHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php
TestInvalidHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php
TestInvalidHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php
TestInvalidHookCollectionHooks::testHook function core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_module/src/Hook/TestInvalidHookCollectionHooks.php #[Hook('test_hook_alter', module: 'test')]
TestInvalidHookCollectionHooks::testHook function core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php #[Hook('test_hook_alter')]
#[RemoveHook('test_hook_alter', self::class, 'testHook')]
TestInvalidHookCollectionHooks::testHook function core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/src/Hook/TestInvalidHookCollectionHooks.php #[Hook('test_hook_alter', order: Order::First)]
TestInvalidHookCollectionHooks::testHook function core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_reorder/src/Hook/TestInvalidHookCollectionHooks.php #[Hook('test_hook_alter')]
#[ReorderHook('test_hook_alter', self::class, 'testHook', Order::First)]
TestModuleRequiredByThemeHooks class core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/src/Hook/TestModuleRequiredByThemeHooks.php Hook implementations for test_module_required_by_theme.
TestModuleRequiredByThemeHooks.php file core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/src/Hook/TestModuleRequiredByThemeHooks.php
TestModuleRequiredByThemeHooks::systemInfoAlter function core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/src/Hook/TestModuleRequiredByThemeHooks.php Implements hook_system_info_alter().
TextHooks class core/modules/text/src/Hook/TextHooks.php Hook implementations for text.
TextHooks.php file core/modules/text/src/Hook/TextHooks.php

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