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
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
HookDiscoveryTest::setUp function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
HookDiscoveryTest::testGetDefinition function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinition method with some plugins.
HookDiscoveryTest::testGetDefinitions function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinitions() method with some plugins.
HookDiscoveryTest::testGetDefinitionsWithoutPlugins function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinitions() method without any plugins.
HookDiscoveryTest::testGetDefinitionWithUnknownID function core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php Tests the getDefinition method with an unknown plugin ID.
HookHelpSection class core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Provides the module topics list section for the help page.
HookHelpSection.php file core/modules/help/src/Plugin/HelpSection/HookHelpSection.php
HookHelpSection::$moduleHandler property core/modules/help/src/Plugin/HelpSection/HookHelpSection.php The module handler.
HookHelpSection::create function core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Creates an instance of the plugin.
HookHelpSection::listTopics function core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Returns a list of topics to show in the help section.
HookHelpSection::__construct function core/modules/help/src/Plugin/HelpSection/HookHelpSection.php Constructs a HookHelpSection object.
HookRequirementsTest class core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php Attempts enabling a module that fails hook_requirements('install').
HookRequirementsTest.php file core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
HookRequirementsTest::$defaultTheme property core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php The theme to install as the default for testing.
HookRequirementsTest::testHookRequirementsFailure function core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php Assert that a module cannot be installed if it fails hook_requirements().
Hooks group core/core.api.php Define functions that alter the behavior of Drupal core.
hook_aggregator_fetcher_info_alter function core/modules/aggregator/aggregator.api.php Perform alterations on the available fetchers.
hook_aggregator_parser_info_alter function core/modules/aggregator/aggregator.api.php Perform alterations on the available parsers.
hook_aggregator_processor_info_alter function core/modules/aggregator/aggregator.api.php Perform alterations on the available processors.
hook_ajax_render_alter function core/lib/Drupal/Core/Form/form.api.php Alter the Ajax command data that is sent to the client.
hook_archiver_info_alter function core/lib/Drupal/Core/File/file.api.php Alter archiver information declared by other modules.
hook_batch_alter function core/lib/Drupal/Core/Form/form.api.php Alter batch information before a batch is processed.
hook_block_access function core/modules/block/block.api.php Control access to a block instance.
hook_block_build_alter function core/modules/block/block.api.php Alter the result of \Drupal\Core\Block\BlockBase::build().
hook_block_build_BASE_BLOCK_ID_alter function core/modules/block/block.api.php Provide a block plugin specific block_build alteration.
hook_block_view_alter function core/modules/block/block.api.php Alter the result of \Drupal\Core\Block\BlockBase::build().
hook_block_view_BASE_BLOCK_ID_alter function core/modules/block/block.api.php Provide a block plugin specific block_view alteration.
hook_cache_flush function core/core.api.php Flush all persistent and static caches.
hook_ckeditor_css_alter function core/modules/ckeditor/ckeditor.api.php Modify the list of CSS files that will be added to a CKEditor instance.
hook_ckeditor_plugin_info_alter function core/modules/ckeditor/ckeditor.api.php Modify the list of available CKEditor plugins.
hook_comment_links_alter function core/modules/comment/comment.api.php Alter the links of a comment.
hook_config_import_steps_alter function core/core.api.php Alter the configuration synchronization steps.
hook_config_schema_info_alter function core/core.api.php Alter config typed data definitions.
hook_config_translation_info function core/modules/config_translation/config_translation.api.php Introduce dynamic translation tabs for translation of configuration.
hook_config_translation_info_alter function core/modules/config_translation/config_translation.api.php Alter existing translation tabs for translation of configuration.
hook_contextual_links_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter contextual links before they are rendered.
hook_contextual_links_plugins_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter the plugin definition of contextual links.
hook_contextual_links_view_alter function core/modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
hook_countries_alter function core/core.api.php Alter the default country list.
hook_cron function core/core.api.php Perform periodic actions.
hook_css_alter function core/lib/Drupal/Core/Render/theme.api.php Alter CSS files before they are output on the page.
hook_data_type_info_alter function core/core.api.php Alter available data types for typed data wrappers.

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