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
LegacyHookTest.php file core/modules/system/tests/src/Functional/Extension/LegacyHookTest.php
LegacyHookTest::$defaultTheme property core/modules/system/tests/src/Functional/Extension/LegacyHookTest.php The theme to install as the default for testing.
LegacyHookTest::$modules property core/modules/system/tests/src/Functional/Extension/LegacyHookTest.php Modules to install.
LegacyHookTest::testLegacyHook function core/modules/system/tests/src/Functional/Extension/LegacyHookTest.php Tests the LegacyHook attribute.
LegacyMimeTypeTest::testHookFileMimetypeMappingAlter function core/tests/Drupal/KernelTests/Core/File/MimeType/LegacyMimeTypeTest.php Tests deprecation of hook_file_mimetype_mapping_alter.
LegacyRequirementsHook.php file core/lib/Drupal/Core/Hook/Attribute/LegacyRequirementsHook.php
legacy_hook_test.info.yml file core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.info.yml core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.info.yml
legacy_hook_test.module file core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module
legacy_hook_test_test1 function core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module #[LegacyHook]
legacy_hook_test_test2 function core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module
LibraryDiscoveryIntegrationTest::testHookLibraryInfoByTheme function core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php Tests that hook_library_info is invoked and the cache is cleared.
LinkGenerationTest::testHookLinkAlter function core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php Tests how hook_link_alter() can affect escaping of the link text.
LinkGenerationTestHooks class core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php Hook implementations for link_generation_test.
LinkGenerationTestHooks.php file core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php
LinkGenerationTestHooks::linkAlter function core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php Implements hook_link_alter().
LinkHooks class core/modules/link/src/Hook/LinkHooks.php Hook implementations for link.
LinkHooks.php file core/modules/link/src/Hook/LinkHooks.php
LinkHooks::fieldTypeCategoryInfoAlter function core/modules/link/src/Hook/LinkHooks.php Implements hook_field_type_category_info_alter().
LinkHooks::help function core/modules/link/src/Hook/LinkHooks.php Implements hook_help().
LinkTestBaseFieldHooks class core/modules/link/tests/modules/link_test_base_field/src/Hook/LinkTestBaseFieldHooks.php Hook implementations for link_test_base_field.
LinkTestBaseFieldHooks.php file core/modules/link/tests/modules/link_test_base_field/src/Hook/LinkTestBaseFieldHooks.php
LinkTestBaseFieldHooks::entityBaseFieldInfo function core/modules/link/tests/modules/link_test_base_field/src/Hook/LinkTestBaseFieldHooks.php Implements hook_entity_base_field_info().
LinkThemeHooks class core/modules/link/src/Hook/LinkThemeHooks.php Theme hooks for link.
LinkThemeHooks.php file core/modules/link/src/Hook/LinkThemeHooks.php
LinkThemeHooks::preprocessLinkFormatterLinkSeparate function core/modules/link/src/Hook/LinkThemeHooks.php Prepares variables for separated link field templates.
LinkThemeHooks::theme function core/modules/link/src/Hook/LinkThemeHooks.php Implements hook_theme().
LocaleCronHooks class core/modules/locale/src/Hook/LocaleCronHooks.php Cron Hook implementation for locale.
LocaleCronHooks.php file core/modules/locale/src/Hook/LocaleCronHooks.php
LocaleCronHooks::cron function core/modules/locale/src/Hook/LocaleCronHooks.php Implements hook_cron().
LocaleCronHooks::__construct function core/modules/locale/src/Hook/LocaleCronHooks.php
LocaleExtensionHooks class core/modules/locale/src/Hook/LocaleExtensionHooks.php Extension hook implementations for locale.
LocaleExtensionHooks.php file core/modules/locale/src/Hook/LocaleExtensionHooks.php
LocaleExtensionHooks::deleteTranslationHistory function core/modules/locale/src/Hook/LocaleExtensionHooks.php Delete translation history of modules and themes.
LocaleExtensionHooks::extensionsInstalled function core/modules/locale/src/Hook/LocaleExtensionHooks.php Implements hook_modules_installed().
LocaleExtensionHooks::modulePreuninstall function core/modules/locale/src/Hook/LocaleExtensionHooks.php Implements hook_module_preuninstall().
LocaleExtensionHooks::themesUninstalled function core/modules/locale/src/Hook/LocaleExtensionHooks.php Implements hook_themes_uninstalled().
LocaleExtensionHooks::__construct function core/modules/locale/src/Hook/LocaleExtensionHooks.php
LocaleFormHooks class core/modules/locale/src/Hook/LocaleFormHooks.php Form hook implementations for locale.
LocaleFormHooks.php file core/modules/locale/src/Hook/LocaleFormHooks.php
LocaleFormHooks::formLanguageAdminAddFormAlter function core/modules/locale/src/Hook/LocaleFormHooks.php Implements hook_form_FORM_ID_alter() for language_admin_add_form().
LocaleFormHooks::formLanguageAdminAddFormAlterSubmit function core/modules/locale/src/Hook/LocaleFormHooks.php Form submission handler for language_admin_add_form.
LocaleFormHooks::formLanguageAdminEditFormAlter function core/modules/locale/src/Hook/LocaleFormHooks.php Implements hook_form_FORM_ID_alter() for language_admin_edit_form().
LocaleFormHooks::formLanguageAdminEditFormAlterSubmit function core/modules/locale/src/Hook/LocaleFormHooks.php Form submission handler for language_admin_edit_form().
LocaleFormHooks::formLanguageAdminOverviewFormAlter function core/modules/locale/src/Hook/LocaleFormHooks.php Implements hook_form_FORM_ID_alter() for language_admin_overview_form().
LocaleFormHooks::formSystemFileSystemSettingsAlter function core/modules/locale/src/Hook/LocaleFormHooks.php Implements hook_form_FORM_ID_alter() for system_file_system_settings().
LocaleFormHooks::importEnabled function core/modules/locale/src/Hook/LocaleFormHooks.php Check if import is enabled.
LocaleFormHooks::__construct function core/modules/locale/src/Hook/LocaleFormHooks.php
LocaleHooks class core/modules/locale/src/Hook/LocaleHooks.php Hook implementations for locale.
LocaleHooks.php file core/modules/locale/src/Hook/LocaleHooks.php
LocaleHooks::cacheFlush function core/modules/locale/src/Hook/LocaleHooks.php Implements hook_cache_flush().

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