Search for hook_

  1. Search 7.x for hook_
  2. Search 9.5.x for hook_
  3. Search 10.3.x for hook_
  4. Search 11.x for hook_
  5. Other projects
Title Object type File name Summary
TestDeprecatedTestHooks::testHookTestGroupStarted function core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php @expectedDeprecation The deprecated hook hook_test_group_started() is implemented in these functions: simpletest_deprecation_test_test_group_started(). Convert your test to a PHPUnit-based one and implement test listeners. See…
TestDiscoveryDeprecationTest::testHookSimpletestAlter function core/modules/simpletest/tests/src/Kernel/TestDiscoveryDeprecationTest.php @expectedDeprecation The deprecated alter hook hook_simpletest_alter() is implemented in these functions: simpletest_deprecation_test_simpletest_alter. Convert your test to a PHPUnit-based one and implement test listeners. See:…
TokenTest::testReplaceWithHookTokensAlterWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]
@covers ::replace[[api-linebreak]]
TokenTest::testReplaceWithHookTokensWithBubbleableMetadata function core/tests/Drupal/Tests/Core/Utility/TokenTest.php @covers ::replace[[api-linebreak]]
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 enable.
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().
UpdateContribTest::testHookUpdateStatusAlter function core/modules/update/tests/src/Functional/UpdateContribTest.php Checks that hook_update_status_alter() works to change a status.
UpdatePathTestBaseTest::testUpdateHookN function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php Test that updates are properly run.
UpdateSchemaTest::testUpdateHooks function core/modules/system/tests/src/Functional/UpdateSystem/UpdateSchemaTest.php Tests that update hooks are properly run.
update_test_invalid_hook.info.yml file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.info.yml
update_test_invalid_hook.install file core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Install, update and uninstall functions for the update_test_invalid_hook module.
update_test_invalid_hook_update_8000 function core/modules/system/tests/modules/update_test_invalid_hook/update_test_invalid_hook.install Hook implementation using the reserved schema version 8000.
user_hooks_test.info.yml file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml core/modules/user/tests/modules/user_hooks_test/user_hooks_test.info.yml
user_hooks_test.module file core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Support module for user hooks testing.
user_hooks_test_user_format_name_alter function core/modules/user/tests/modules/user_hooks_test/user_hooks_test.module Implements hook_user_format_name_alter().
Views hooks group core/modules/views/views.api.php Hooks that allow other modules to implement the Views API.
ViewsDisplay::$uses_hook_block property core/modules/views/src/Annotation/ViewsDisplay.php Does the display plugin provide blocks.
ViewsHandlerManagerTest::testAlterHookInvocation function core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php Tests that hook_views_plugins_TYPE_alter() is invoked for a handler type.
ViewsHooksTest class core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests that views hooks are registered when defined in $module.views.inc.
ViewsHooksTest.php file core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::$hooks property core/modules/views/tests/src/Kernel/ViewsHooksTest.php An array of available views hooks to test.
ViewsHooksTest::$moduleHandler property core/modules/views/tests/src/Kernel/ViewsHooksTest.php The module handler to use for invoking hooks.
ViewsHooksTest::$testViews property core/modules/views/tests/src/Kernel/ViewsHooksTest.php Views used by this test.
ViewsHooksTest::setUp function core/modules/views/tests/src/Kernel/ViewsHooksTest.php
ViewsHooksTest::testHooks function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests the hooks.
ViewsHooksTest::testViewsFormMainFormPreRender function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests how hook_views_form_substitutions() makes substitutions.
ViewsHooksTest::testViewsPreRenderViewsFormViewsForm function core/modules/views/tests/src/Kernel/ViewsHooksTest.php Tests views_pre_render_views_form_views_form() deprecation.
ViewsLocalTaskTest::testGetDerivativeDefinitionsWithoutHookMenuViews function core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php Tests fetching the derivatives on no view with hook menu.
views_hook_info function core/modules/views/views.module Implements hook_hook_info().
_entity_test_record_hooks function core/modules/system/tests/modules/entity_test/entity_test.module Helper function to be used to record hook invocations.

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