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. Search 11.x for hook_
  6. Other projects
Title Object type File name Summary
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.
hook_default_admin_content_form_ignore_form_ids function core/themes/default_admin/default_admin.api.php Register form IDs that should not use the content form.
hook_default_admin_content_form_routes function core/themes/default_admin/default_admin.api.php Register routes to apply admin’s content edit form layout.
hook_default_admin_content_form_routes_alter function core/themes/default_admin/default_admin.api.php Alter the registered routes to enable or disable admin’s edit form layout.
hook_display_variant_plugin_alter function core/core.api.php Alter display variant plugin definitions.
hook_editor_info_alter function core/modules/editor/editor.api.php Performs alterations on text editor definitions.
hook_editor_js_settings_alter function core/modules/editor/editor.api.php Modifies JavaScript settings that are added for text editors.
hook_editor_xss_filter_alter function core/modules/editor/editor.api.php Modifies the text editor XSS filter that will used for the given text format.
hook_element_info_alter function core/lib/Drupal/Core/Render/theme.api.php Alter the element type information returned from modules.
hook_element_plugin_alter function core/lib/Drupal/Core/Render/theme.api.php Alter Element plugin definitions.
hook_entity_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity operation access.
hook_entity_base_field_info function core/lib/Drupal/Core/Entity/entity.api.php Provides custom base field definitions for a content entity type.
hook_entity_base_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter base field definitions for a content entity type.
hook_entity_build_defaults_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter entity renderable values before cache checking during rendering.
hook_entity_bundle_create function core/lib/Drupal/Core/Entity/entity.api.php Act on entity_bundle_create().
hook_entity_bundle_delete function core/lib/Drupal/Core/Entity/entity.api.php Act on entity_bundle_delete().
hook_entity_bundle_field_info function core/lib/Drupal/Core/Entity/entity.api.php Provides field definitions for a specific bundle within an entity type.
hook_entity_bundle_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter bundle field definitions.
hook_entity_bundle_info function core/lib/Drupal/Core/Entity/entity.api.php Describe the bundles for entity types.
hook_entity_bundle_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the bundles for entity types.
hook_entity_create function core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity.
hook_entity_create_access function core/lib/Drupal/Core/Entity/entity.api.php Control entity create access.
hook_entity_delete function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity deletion.
hook_entity_display_build_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the render array generated by an EntityDisplay for an entity.
hook_entity_duplicate function core/lib/Drupal/Core/Entity/entity.api.php Acts when duplicating an existing entity.
hook_entity_extra_field_info function core/lib/Drupal/Core/Entity/entity.api.php Exposes "pseudo-field" components on content entities.
hook_entity_extra_field_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter "pseudo-field" components on content entities.
hook_entity_field_access function core/lib/Drupal/Core/Entity/entity.api.php Control access to fields.
hook_entity_field_access_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the default access behavior for a given field.
hook_entity_field_storage_info function core/lib/Drupal/Core/Entity/entity.api.php Provides field storage definitions for a content entity type.
hook_entity_field_storage_info_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter field storage definitions for a content entity type.
hook_entity_field_values_init function core/lib/Drupal/Core/Entity/entity.api.php Acts when initializing a fieldable entity object.
hook_entity_form_display_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter the settings used for displaying an entity form.
hook_entity_form_mode_alter function core/lib/Drupal/Core/Entity/entity.api.php Change the form mode used to build an entity form.
hook_entity_insert function core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity.
hook_entity_load function core/lib/Drupal/Core/Entity/entity.api.php Act on entities when loaded.
hook_entity_operation function core/lib/Drupal/Core/Entity/entity.api.php Declares entity operations.
hook_entity_operation_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter entity operations.
hook_entity_predelete function core/lib/Drupal/Core/Entity/entity.api.php Act before entity deletion.
hook_entity_preload function core/lib/Drupal/Core/Entity/entity.api.php Act on an array of entity IDs before they are loaded.
hook_entity_prepare_form function core/lib/Drupal/Core/Entity/entity.api.php Acts on an entity object about to be shown on an entity form.
hook_entity_prepare_view function core/lib/Drupal/Core/Entity/entity.api.php Act on entities as they are being prepared for view.
hook_entity_presave function core/lib/Drupal/Core/Entity/entity.api.php Act on an entity before it is created or updated.
hook_entity_query_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query.
hook_entity_query_ENTITY_TYPE_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query for a specific entity type.
hook_entity_query_tag__ENTITY_TYPE__TAG_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query for a specific entity type that has a specific tag.
hook_entity_query_tag__TAG_alter function core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query that has a specific tag.
hook_entity_reference_selection_alter function core/lib/Drupal/Core/Entity/entity.api.php Modify the list of available entity reference plugins.
hook_entity_revision_create function core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision creation.

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