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
hook_views_pre_execute function core/modules/views/views.api.php Act on the view after the query is built and just before it is executed.
hook_views_pre_render function core/modules/views/views.api.php Act on the view immediately before rendering it.
hook_views_pre_view function core/modules/views/views.api.php Alter a view at the very beginning of Views processing.
hook_views_query_alter function core/modules/views/views.api.php Alter the query before it is executed.
hook_views_query_substitutions function core/modules/views/views.api.php Replace special strings in the query before it is executed.
hook_views_ui_display_tab_alter function core/modules/views_ui/views_ui.api.php Alter the renderable array representing the edit page for one display.
hook_views_ui_display_top_alter function core/modules/views_ui/views_ui.api.php Alter the top of the display for the Views UI.
hook_views_ui_display_top_links_alter function core/modules/views_ui/views_ui.api.php Alter the links displayed at the top of the view edit form.
HtmlRenderer::invokePageAttachmentHooks function core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php Invokes the page attachment hooks.
InfoHookDecorator class core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Allows info hook implementations to enhance discovered plugin definitions.
InfoHookDecorator.php file core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php
InfoHookDecorator::$decorated property core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php The Discovery object being decorated.
InfoHookDecorator::$hook property core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php The name of the info hook that will be implemented by this discovery instance.
InfoHookDecorator::getDefinitions function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php
InfoHookDecorator::__call function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Passes through all unknown calls onto the decorated object.
InfoHookDecorator::__construct function core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php Constructs a InfoHookDecorator object.
InstallerExistingConfigProfileHookInstall class core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Verifies that profiles with hook_install() can't be installed from config.
InstallerExistingConfigProfileHookInstall.php file core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::$profile property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::getConfigTarball function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigProfileHookInstall::setUpSettings function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Installer step: Configure settings.
InstallerExistingConfigProfileHookInstall::setUpSite function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Final installer step: Configure site.
InstallerExistingConfigProfileHookInstall::testConfigSync function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php Confirms the installation has failed and the expected error is displayed.
InstallerExistingConfigProfileHookInstall::visitInstaller function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall class core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Verifies that profiles with hook_install() can't be installed from config.
InstallerExistingConfigSyncDirectoryProfileHookInstall.php file core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$defaultTheme property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$existingSyncDirectory property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::$profile property core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::getConfigTarball function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpProfile function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Select installation profile.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpRequirementsProblem function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Requirements problem.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpSettings function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Installer step: Configure settings.
InstallerExistingConfigSyncDirectoryProfileHookInstall::setUpSite function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Final installer step: Configure site.
InstallerExistingConfigSyncDirectoryProfileHookInstall::testConfigSync function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php Tests installing from config is not available due to hook_INSTALL().
InstallerExistingConfigSyncDirectoryProfileHookInstall::visitInstaller function core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigSyncDirectoryProfileHookInstall.php
InstallerProfileRequirementsTest::testHookRequirementsFailure function core/tests/Drupal/FunctionalTests/Installer/InstallerProfileRequirementsTest.php Assert that the profile failed hook_requirements().
InvalidUpdateHookTest class core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php Tests that a module implementing hook_update_8000() causes an error to be
displayed on update.
InvalidUpdateHookTest.php file core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::$defaultTheme property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::$modules property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php Modules to enable.
InvalidUpdateHookTest::$updateUrl property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php URL for the upgrade script.
InvalidUpdateHookTest::$updateUser property core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php A user account with upgrade permission.
InvalidUpdateHookTest::setUp function core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
InvalidUpdateHookTest::testInvalidUpdateHook function core/modules/system/tests/src/Functional/UpdateSystem/InvalidUpdateHookTest.php
JsonApiRegressionTest::testGetNodeCollectionWithHookNodeGrantsImplementationsFromIssue2984964 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Ensures GETting node collection + hook_node_grants() implementations works.
LanguageEntityFieldAccessHookTest class core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Tests language picker compatibility with hook_entity_field_access.
LanguageEntityFieldAccessHookTest.php file core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php
LanguageEntityFieldAccessHookTest::$defaultTheme property core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php The theme to install as the default for testing.
LanguageEntityFieldAccessHookTest::$modules property core/modules/language/tests/src/Functional/LanguageEntityFieldAccessHookTest.php Modules to enable.

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