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
TokenHooks.php file core/modules/file/src/Hook/TokenHooks.php
TokenHooks::tokenInfo function core/modules/file/src/Hook/TokenHooks.php Implements hook_token_info().
TokenHooks::tokens function core/modules/file/src/Hook/TokenHooks.php Implements hook_tokens().
TokenHooks::__construct function core/modules/file/src/Hook/TokenHooks.php
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Tests replace with hook tokens alter with bubbleable metadata.
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php Tests replace with hook tokens with bubbleable metadata.
ToolbarDisableUserToolbarHooks class core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/src/Hook/ToolbarDisableUserToolbarHooks.php Hook implementations for toolbar_disable_user_toolbar.
ToolbarDisableUserToolbarHooks.php file core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/src/Hook/ToolbarDisableUserToolbarHooks.php
ToolbarDisableUserToolbarHooks::toolbarAlter function core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/src/Hook/ToolbarDisableUserToolbarHooks.php Implements hook_toolbar_alter().
ToolbarHooks class core/modules/toolbar/src/Hook/ToolbarHooks.php Hook implementations for toolbar.
ToolbarHooks.php file core/modules/toolbar/src/Hook/ToolbarHooks.php
ToolbarHooks::help function core/modules/toolbar/src/Hook/ToolbarHooks.php Implements hook_help().
ToolbarHooks::pageTop function core/modules/toolbar/src/Hook/ToolbarHooks.php Implements hook_page_top().
ToolbarHooks::toolbar function core/modules/toolbar/src/Hook/ToolbarHooks.php Implements hook_toolbar().
ToolbarHookToolbarTest class core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Tests the implementation of hook_toolbar() by a module.
ToolbarHookToolbarTest.php file core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php
ToolbarHookToolbarTest::$adminUser property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php A user with permission to access the administrative toolbar.
ToolbarHookToolbarTest::$defaultTheme property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php The theme to install as the default for testing.
ToolbarHookToolbarTest::$modules property core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Modules to install.
ToolbarHookToolbarTest::setUp function core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php
ToolbarHookToolbarTest::testHookToolbar function core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php Tests for a tab and tray provided by a module implementing hook_toolbar().
ToolbarTestHooks class core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestHooks.php Hook implementations for toolbar_test.
ToolbarTestHooks.php file core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestHooks.php
ToolbarTestHooks::toolbar function core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestHooks.php Implements hook_toolbar().
ToolbarTestThemeHooks class core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestThemeHooks.php Hook implementations for toolbar_test.
ToolbarTestThemeHooks.php file core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestThemeHooks.php
ToolbarTestThemeHooks::preprocessMenu function core/modules/toolbar/tests/modules/toolbar_test/src/Hook/ToolbarTestThemeHooks.php Implements hook_preprocess_HOOK().
ToolbarThemeHooks class core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Hook implementations for toolbar.
ToolbarThemeHooks.php file core/modules/toolbar/src/Hook/ToolbarThemeHooks.php
ToolbarThemeHooks::preprocessHtml function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Implements hook_preprocess_HOOK() for HTML document templates.
ToolbarThemeHooks::preprocessToolbar function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Prepares variables for administration toolbar templates.
ToolbarThemeHooks::theme function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php Implements hook_theme().
ToolbarThemeHooks::__construct function core/modules/toolbar/src/Hook/ToolbarThemeHooks.php
TwigDeprecationsTest::testHookThemeDeprecations function core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php Test deprecating variables at definition in hook_theme().
TwigExtensionTestHooks class core/modules/system/tests/modules/twig_extension_test/src/Hook/TwigExtensionTestHooks.php Hook implementations for twig_extension_test.
TwigExtensionTestHooks.php file core/modules/system/tests/modules/twig_extension_test/src/Hook/TwigExtensionTestHooks.php
TwigExtensionTestHooks::theme function core/modules/system/tests/modules/twig_extension_test/src/Hook/TwigExtensionTestHooks.php Implements hook_theme().
TwigThemeTestHooks class core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Hook implementations for twig_theme_test.
TwigThemeTestHooks.php file core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php
TwigThemeTestHooks::preprocessStatusMessages function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_preprocess_HOOK().
TwigThemeTestHooks::theme function core/modules/system/tests/modules/twig_theme_test/src/Hook/TwigThemeTestHooks.php Implements hook_theme().
UmamiHooks class core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Hook implementations for umami.
UmamiHooks.php file core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php
UmamiHooks::formAlter function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_form_alter().
UmamiHooks::formSearchBlockFormAlter function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_form_FORM_ID_alter() for search_block_form.
UmamiHooks::preprocessBlock function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_preprocess_HOOK() for block.
UmamiHooks::preprocessBlockBundleBannerBlock function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_preprocess_HOOK() for block--bundle--banner-block.
UmamiHooks::preprocessBlockBundleFooterPromoBlock function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_preprocess_HOOK() for block bundle footer promo.
UmamiHooks::preprocessBreadcrumb function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_preprocess_HOOK() for breadcrumb.
UmamiHooks::preprocessField function core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php Implements hook_preprocess_HOOK() for field.

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