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
BlockHookOperationTest::$defaultTheme property core/modules/block/tests/src/Functional/BlockHookOperationTest.php The theme to install as the default for testing.
BlockHookOperationTest::$modules property core/modules/block/tests/src/Functional/BlockHookOperationTest.php Modules to install.
BlockHookOperationTest::setUp function core/modules/block/tests/src/Functional/BlockHookOperationTest.php
BlockHookOperationTest::testBlockOperationAlter function core/modules/block/tests/src/Functional/BlockHookOperationTest.php Tests the block list to see if the test_operation link is added.
BlockHooks class core/modules/block/src/Hook/BlockHooks.php Hook implementations for block.
BlockHooks.php file core/modules/block/src/Hook/BlockHooks.php
BlockHooks::blockBuildLocalActionsBlockAlter function core/modules/block/src/Hook/BlockHooks.php Implements hook_block_build_BASE_BLOCK_ID_alter().
BlockHooks::configurableLanguageDelete function core/modules/block/src/Hook/BlockHooks.php Implements hook_ENTITY_TYPE_delete() for 'configurable_language'.
BlockHooks::help function core/modules/block/src/Hook/BlockHooks.php Implements hook_help().
BlockHooks::menuDelete function core/modules/block/src/Hook/BlockHooks.php Implements hook_ENTITY_TYPE_delete() for menu entities.
BlockHooks::modulesInstalled function core/modules/block/src/Hook/BlockHooks.php Implements hook_modules_installed().
BlockHooks::pageTop function core/modules/block/src/Hook/BlockHooks.php Implements hook_page_top().
BlockHooks::preprocessBlock function core/modules/block/src/Hook/BlockHooks.php Prepares variables for block templates.
BlockHooks::rebuild function core/modules/block/src/Hook/BlockHooks.php Implements hook_rebuild().
BlockHooks::theme function core/modules/block/src/Hook/BlockHooks.php Implements hook_theme().
BlockHooks::themesInstalled function core/modules/block/src/Hook/BlockHooks.php Implements hook_themes_installed().
BlockHooks::userRoleDelete function core/modules/block/src/Hook/BlockHooks.php Implements hook_ENTITY_TYPE_delete() for user_role entities.
BlockTemplateSuggestionsTest::testBlockThemeHookSuggestions function core/modules/block/tests/src/Kernel/BlockTemplateSuggestionsTest.php Tests template suggestions from the block module.
BlockTemplateSuggestionsTest::testBlockThemeHookSuggestions function core/modules/block_content/tests/src/Kernel/BlockTemplateSuggestionsTest.php Tests template suggestions from block_content_theme_suggestions_block().
BlockTestHooks class core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php Hook implementations for block_test.
BlockTestHooks.php file core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php
BlockTestHooks::blockAlter function core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php Implements hook_block_alter().
BlockTestHooks::blockBuildTestCacheAlter function core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php Implements hook_block_build_BASE_BLOCK_ID_alter().
BlockTestHooks::blockViewPageTitleBlockAlter function core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php Implements hook_block_view_BASE_BLOCK_ID_alter().
BlockTestHooks::blockViewTestCacheAlter function core/modules/block/tests/modules/block_test/src/Hook/BlockTestHooks.php Implements hook_block_view_BASE_BLOCK_ID_alter().
BlockThemeHooks class core/modules/block/src/Hook/BlockThemeHooks.php Hook implementations for block.
BlockThemeHooks.php file core/modules/block/src/Hook/BlockThemeHooks.php
BlockThemeHooks::themeSuggestionsBlock function core/modules/block/src/Hook/BlockThemeHooks.php Implements hook_theme_suggestions_HOOK().
BreakpointHooks class core/modules/breakpoint/src/Hook/BreakpointHooks.php Hook implementations for breakpoint.
BreakpointHooks.php file core/modules/breakpoint/src/Hook/BreakpointHooks.php
BreakpointHooks::help function core/modules/breakpoint/src/Hook/BreakpointHooks.php Implements hook_help().
BreakpointHooks::themesInstalled function core/modules/breakpoint/src/Hook/BreakpointHooks.php Implements hook_themes_installed().
BreakpointHooks::themesUninstalled function core/modules/breakpoint/src/Hook/BreakpointHooks.php Implements hook_themes_uninstalled().
BulkDeleteTest::checkHooksInvocations function core/modules/field/tests/src/Kernel/BulkDeleteTest.php Tests that the expected hooks have been invoked on the expected entities.
CAlterHooks class core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CAlterHooks.php This class contains hook implementations.
CAlterHooks.php file core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CAlterHooks.php
CAlterHooks::testAlter function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CAlterHooks.php #[Hook('test_alter')]
CAlterHooks::testSubtypeAlter function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CAlterHooks.php #[Hook('test_subtype_alter')]
ccc_hook_order_test.info.yml file core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.info.yml core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.info.yml
ccc_hook_order_test.module file core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.module
ccc_hook_order_test_procedural_alter function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.module Implements hook_procedural_alter().
ccc_hook_order_test_procedural_subtype_alter function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.module Implements hook_procedural_subtype_alter().
ccc_hook_order_test_sparse_test_hook function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.module Implements hook_sparse_test_hook().
ccc_hook_order_test_test_hook function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/ccc_hook_order_test.module Implements hook_test_hook().
CHooks class core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php This class contains hook implementations.
CHooks.php file core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php
CHooks::testBothParametersHook function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php #[Hook('test_both_parameters_hook')]
CHooks::testHook function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php #[Hook('test_hook')]
CHooks::testHookFirst function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php #[Hook('test_hook', order: Order::First)]
CHooks::testHookRemoved function core/modules/system/tests/modules/HookOrder/ccc_hook_order_test/src/Hook/CHooks.php This implementation is removed from elsewhere.

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