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
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
TestingProfileHooksTest::$profile property core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php
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.
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
TestInstallerThemeHooks::formInstallSelectLanguageFormAlter function core/modules/system/tests/themes/test_installer_theme/src/Hook/TestInstallerThemeHooks.php Implements hook_form_FORM_ID_alter().
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_module/src/Hook/TestInvalidHookCollectionHooks.php
TestInvalidHookCollectionHooks.php file core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_remove/src/Hook/TestInvalidHookCollectionHooks.php
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::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().
TestSubsubthemeHooks class core/modules/system/tests/themes/test_subsubtheme/src/Hook/TestSubsubthemeHooks.php Hook implementations for test_subsubtheme.
TestSubsubthemeHooks.php file core/modules/system/tests/themes/test_subsubtheme/src/Hook/TestSubsubthemeHooks.php
TestSubsubthemeHooks::preprocessThemeTestTemplateTest function core/modules/system/tests/themes/test_subsubtheme/src/Hook/TestSubsubthemeHooks.php Implements hook_preprocess_HOOK() for theme_test_template_test templates.
TestSubthemeHooks class core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php Hook implementations for test_subtheme.
TestSubthemeHooks.php file core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php
TestSubthemeHooks::preprocessThemeTestTemplateTest function core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php Implements hook_preprocess_HOOK() for theme_test_template_test templates.
TestSubthemeHooks::viewsPostRender function core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php Implements hook_views_post_render().
TestSubthemeHooks::viewsPreRender function core/modules/system/tests/themes/test_subtheme/src/Hook/TestSubthemeHooks.php Implements hook_views_pre_render().
TestThemeAlterHooks class core/modules/system/tests/themes/test_theme_alter/src/Hook/TestThemeAlterHooks.php Hook implementations for test_theme_alter.
TestThemeAlterHooks.php file core/modules/system/tests/themes/test_theme_alter/src/Hook/TestThemeAlterHooks.php
TestThemeAlterHooks::drupalAlterAlter function core/modules/system/tests/themes/test_theme_alter/src/Hook/TestThemeAlterHooks.php Implements hook_TYPE_alter().

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