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
entity_crud_hook_test_node_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for node entities.
entity_crud_hook_test_node_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for node entities.
entity_crud_hook_test_node_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for node entities.
entity_crud_hook_test_taxonomy_term_create function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_delete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_insert function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_load function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_vocabulary_create function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_delete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_insert function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_load function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_vocabulary entities.
entity_crud_hook_test_user_create function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for user entities.
entity_crud_hook_test_user_delete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for user entities.
entity_crud_hook_test_user_insert function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for user entities.
entity_crud_hook_test_user_load function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for user entities.
entity_crud_hook_test_user_predelete function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for user entities.
entity_crud_hook_test_user_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for user entities.
entity_crud_hook_test_user_update function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for user entities.
FieldSchemaDataUninstallUpdateTest::testUpdateHookN function core/modules/system/tests/src/Functional/Update/FieldSchemaDataUninstallUpdateTest.php Tests the upgrade path after fixing field schema data uninstallation.
FileManagedTestBase::assertFileHookCalled function core/modules/file/src/Tests/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedTestBase::assertFileHookCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedTestBase::assertFileHooksCalled function core/modules/file/src/Tests/FileManagedTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedTestBase::assertFileHooksCalled function core/modules/file/tests/src/Functional/FileManagedTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedUnitTestBase::assertFileHookCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedUnitTestBase::assertFileHooksCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileUsageTemporaryDeletionConfigurationUpdateTest::testUpdateHookN function core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php Tests that make_unused_managed_files_temporary conditions are correct.
FilterHooksTest class core/modules/filter/tests/src/Functional/FilterHooksTest.php Tests hooks for text formats insert/update/disable.
FilterHooksTest.php file core/modules/filter/tests/src/Functional/FilterHooksTest.php
FilterHooksTest::$defaultTheme property core/modules/filter/tests/src/Functional/FilterHooksTest.php
FilterHooksTest::$modules property core/modules/filter/tests/src/Functional/FilterHooksTest.php Modules to enable.
FilterHooksTest::testFilterHooks function core/modules/filter/tests/src/Functional/FilterHooksTest.php Tests hooks on format management.
HelpEmptyPageTest::testEmptyHookHelp function core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php Ensures that no URL generator is called on a page without hook_help().
HookDiscovery class core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Provides a hook-based plugin discovery class.
HookDiscovery.php file core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
HookDiscovery::$hook property core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php The name of the hook that will be implemented by this discovery instance.
HookDiscovery::$moduleHandler property core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php The module handler used to find and execute the plugin hook.
HookDiscovery::getDefinitions function core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
HookDiscovery::__construct function core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php Constructs a Drupal\Core\Plugin\Discovery\HookDiscovery object.
HookDiscoveryTest class core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php @coversDefaultClass \Drupal\Core\Plugin\Discovery\HookDiscovery[[api-linebreak]]
@group Plugin
HookDiscoveryTest.php file core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::$hookDiscovery property core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php The tested hook discovery.
HookDiscoveryTest::$moduleHandler property core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php The mocked module handler.
HookDiscoveryTest::hookDiscoveryTest2TestPlugin function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::hookDiscoveryTestTestPlugin function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php

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