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
TextHooks class core/modules/text/src/Hook/TextHooks.php Hook implementations for text.
TextHooks.php file core/modules/text/src/Hook/TextHooks.php
TextHooks::help function core/modules/text/src/Hook/TextHooks.php Implements hook_help().
TextTestHooks class core/modules/text/tests/modules/text_test/src/Hook/TextTestHooks.php Hook implementations for text_test.
TextTestHooks.php file core/modules/text/tests/modules/text_test/src/Hook/TextTestHooks.php
TextTestHooks::entityBundleFieldInfoAlter function core/modules/text/tests/modules/text_test/src/Hook/TextTestHooks.php Implements hook_entity_bundle_field_info_alter().
TextTestHooks::__construct function core/modules/text/tests/modules/text_test/src/Hook/TextTestHooks.php
TextWithSummaryFileUsageTest::testEditorEntityHooks function core/modules/editor/tests/src/Kernel/TextWithSummaryFileUsageTest.php Tests the configurable text editor manager.
theme-test-deprecations-hook-theme.html.twig file core/modules/system/tests/modules/theme_test/templates/theme-test-deprecations-hook-theme.html.twig {# Test variables deprecated in hook_theme(). #}
{{ foo }}
ThemeHook.php file core/modules/system/src/Hook/ThemeHook.php
ThemeHook::theme function core/modules/system/src/Hook/ThemeHook.php Implements hook_theme().
ThemeHookCollectorPass class core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Collects and registers hook implementations.
ThemeHookCollectorPass.php file core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php
ThemeHookCollectorPass::$oopImplementations property core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php OOP implementation theme names keyed by hook name and "$class::$method".
ThemeHookCollectorPass::$preprocessForSuggestions property core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Preprocess suggestions discovered in extensions.
ThemeHookCollectorPass::$proceduralImplementations property core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Procedural implementation extension names by hook name.
ThemeHookCollectorPass::calculateImplementations function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Calculates the ordered implementations.
ThemeHookCollectorPass::checkInvalidHookParametersInThemes function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Checks for hooks which can't be supported in theme classes.
ThemeHookCollectorPass::collectAllHookImplementations function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Collects all hook implementations.
ThemeHookCollectorPass::collectThemeHookImplementations function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Collects procedural and Attribute hook implementations.
ThemeHookCollectorPass::filterIterator function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Filter iterator callback. Allows include files and .php files in src/Hook.
ThemeHookCollectorPass::getAttributeInstances function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Get attribute instances from class and method reflections.
ThemeHookCollectorPass::getFilteredImplementations function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Gets implementation lists with removals already applied.
ThemeHookCollectorPass::getThemeListPattern function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Get a pattern used to match hooks for the given theme list.
ThemeHookCollectorPass::process function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php
ThemeHookCollectorPass::registerHookServices function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Registers the hook implementation services.
ThemeHookCollectorPass::sortByTheme function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Sort by theme.
ThemeHookCollectorPass::writeToContainer function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Writes collected definitions to the container builder.
ThemeHookCollectorPass::__construct function core/lib/Drupal/Core/Hook/ThemeHookCollectorPass.php Constructor.
ThemeHookCollectorPassTest class core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Tests Drupal\Core\Hook\ThemeHookCollectorPass.
ThemeHookCollectorPassTest.php file core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php
ThemeHookCollectorPassTest::testCollection function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Test collection.
ThemeHookCollectorPassTest::testExceptionModule function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Test exception with module parameter.
ThemeHookCollectorPassTest::testExceptionOrder function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Test exception with order parameter.
ThemeHookCollectorPassTest::testExceptionRemove function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Test exception with remove attribute.
ThemeHookCollectorPassTest::testExceptionReorder function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Test exception with reorder attribute.
ThemeHookCollectorPassTest::testHookExecution function core/tests/Drupal/KernelTests/Core/Hook/ThemeHookCollectorPassTest.php Tests hook execution in themes.
ThemeManager::$allHookImplementations property core/lib/Drupal/Core/Theme/ThemeManager.php Raw list of hook implementations by theme name.
ThemeManager::$themeHookImplementations property core/lib/Drupal/Core/Theme/ThemeManager.php Raw list of hook callables by theme and hook name.
ThemeManager::buildThemeHookSuggestions function core/lib/Drupal/Core/Theme/ThemeManager.php Builds theme hook suggestions for a theme hook with variables.
ThemePageTestHooks class core/modules/system/tests/modules/theme_page_test/src/Hook/ThemePageTestHooks.php Hook implementations for theme_page_test.
ThemePageTestHooks.php file core/modules/system/tests/modules/theme_page_test/src/Hook/ThemePageTestHooks.php
ThemePageTestHooks::systemInfoAlter function core/modules/system/tests/modules/theme_page_test/src/Hook/ThemePageTestHooks.php Implements hook_system_info_alter().
ThemeRegionTestThemeHooks class core/modules/system/tests/modules/theme_region_test/src/Hook/ThemeRegionTestThemeHooks.php Hook implementations for theme_region_test.
ThemeRegionTestThemeHooks.php file core/modules/system/tests/modules/theme_region_test/src/Hook/ThemeRegionTestThemeHooks.php
ThemeRegionTestThemeHooks::preprocessRegion function core/modules/system/tests/modules/theme_region_test/src/Hook/ThemeRegionTestThemeHooks.php Implements hook_preprocess_HOOK() for region templates.
ThemeSuggestionsTestHooks class core/modules/system/tests/modules/theme_suggestions_test/src/Hook/ThemeSuggestionsTestHooks.php Hook implementations for theme_suggestions_test.
ThemeSuggestionsTestHooks.php file core/modules/system/tests/modules/theme_suggestions_test/src/Hook/ThemeSuggestionsTestHooks.php
ThemeSuggestionsTestHooks::themeSuggestionsAlter function core/modules/system/tests/modules/theme_suggestions_test/src/Hook/ThemeSuggestionsTestHooks.php Implements hook_theme_suggestions_alter().
ThemeSuggestionsTestHooks::themeSuggestionsThemeTestSpecificSuggestionsAlter function core/modules/system/tests/modules/theme_suggestions_test/src/Hook/ThemeSuggestionsTestHooks.php Implements hook_theme_suggestions_HOOK_alter().

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