Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
hook_entity_query_alter core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query.
hook_entity_query_ENTITY_TYPE_alter 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 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 core/lib/Drupal/Core/Entity/entity.api.php Alter an entity query that has a specific tag.
hook_entity_reference_selection_alter core/lib/Drupal/Core/Entity/entity.api.php Modify the list of available entity reference plugins.
hook_entity_revision_create core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision creation.
hook_entity_revision_delete core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision deletion.
hook_entity_storage_load core/lib/Drupal/Core/Entity/entity.api.php Act on content entities when loaded from the storage.
hook_entity_translation_create core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity translation.
hook_entity_translation_delete core/lib/Drupal/Core/Entity/entity.api.php Respond to entity translation deletion.
hook_entity_translation_insert core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity translation.
hook_ENTITY_TYPE_access core/lib/Drupal/Core/Entity/entity.api.php Control entity operation access for a specific entity type.
hook_entity_type_alter core/lib/Drupal/Core/Entity/entity.api.php Alter the entity type definitions.
hook_entity_type_build core/lib/Drupal/Core/Entity/entity.api.php Add to entity type definitions.
hook_ENTITY_TYPE_build_defaults_alter core/lib/Drupal/Core/Entity/entity.api.php Alter entity renderable values before cache checking during rendering.
hook_ENTITY_TYPE_create core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity of a specific type.
hook_ENTITY_TYPE_create_access core/lib/Drupal/Core/Entity/entity.api.php Control entity create access for a specific entity type.
hook_ENTITY_TYPE_delete core/lib/Drupal/Core/Entity/entity.api.php Respond to entity deletion of a particular type.
hook_ENTITY_TYPE_duplicate core/lib/Drupal/Core/Entity/entity.api.php Acts when duplicating an existing entity of a specific type.
hook_ENTITY_TYPE_field_values_init core/lib/Drupal/Core/Entity/entity.api.php Acts when initializing a fieldable entity object.
hook_ENTITY_TYPE_form_mode_alter core/lib/Drupal/Core/Entity/entity.api.php Change the form mode of a specific entity type currently being displayed.
hook_ENTITY_TYPE_insert core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity of a particular type.
hook_ENTITY_TYPE_load core/lib/Drupal/Core/Entity/entity.api.php Act on entities of a specific type when loaded.
hook_ENTITY_TYPE_predelete core/lib/Drupal/Core/Entity/entity.api.php Act before entity deletion of a particular entity type.
hook_ENTITY_TYPE_prepare_form core/lib/Drupal/Core/Entity/entity.api.php Acts on a particular type of entity object about to be in an entity form.
hook_ENTITY_TYPE_presave core/lib/Drupal/Core/Entity/entity.api.php Act on a specific type of entity before it is created or updated.
hook_ENTITY_TYPE_revision_create core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision creation.
hook_ENTITY_TYPE_revision_delete core/lib/Drupal/Core/Entity/entity.api.php Respond to entity revision deletion of a particular type.
hook_ENTITY_TYPE_storage_load core/lib/Drupal/Core/Entity/entity.api.php Act on content entities of a given type when loaded from the storage.
hook_ENTITY_TYPE_translation_create core/lib/Drupal/Core/Entity/entity.api.php Acts when creating a new entity translation of a specific type.
hook_ENTITY_TYPE_translation_delete core/lib/Drupal/Core/Entity/entity.api.php Respond to entity translation deletion of a particular type.
hook_ENTITY_TYPE_translation_insert core/lib/Drupal/Core/Entity/entity.api.php Respond to creation of a new entity translation of a particular type.
hook_ENTITY_TYPE_update core/lib/Drupal/Core/Entity/entity.api.php Respond to updates to an entity of a particular type.
hook_ENTITY_TYPE_view core/lib/Drupal/Core/Entity/entity.api.php Act on entities of a particular type being assembled before rendering.
hook_ENTITY_TYPE_view_alter core/lib/Drupal/Core/Entity/entity.api.php Alter the results of the entity build array for a particular entity type.
hook_ENTITY_TYPE_view_mode_alter core/lib/Drupal/Core/Entity/entity.api.php Change the view mode of a specific entity type currently being displayed.
hook_entity_update core/lib/Drupal/Core/Entity/entity.api.php Respond to updates to an entity. 1
hook_entity_view core/lib/Drupal/Core/Entity/entity.api.php Act on entities being assembled before rendering.
hook_entity_view_alter core/lib/Drupal/Core/Entity/entity.api.php Alter the results of the entity build array.
hook_entity_view_display_alter core/lib/Drupal/Core/Entity/entity.api.php Alter the settings used for displaying an entity.
hook_entity_view_mode_alter core/lib/Drupal/Core/Entity/entity.api.php Change the view mode of an entity that is being displayed.
hook_entity_view_mode_info_alter core/lib/Drupal/Core/Entity/entity.api.php Alter the view modes for entity types.
hook_extension core/lib/Drupal/Core/Render/theme.api.php Declare a template file extension to be used with a theme engine.
hook_field_formatter_info_alter core/modules/field/field.api.php Perform alterations on Field API formatter types.
hook_field_formatter_settings_summary_alter core/modules/field_ui/field_ui.api.php Alters the field formatter settings summary.
hook_field_formatter_third_party_settings_form core/modules/field_ui/field_ui.api.php Allow modules to add settings to field formatters provided by other modules.
hook_field_info_alter core/modules/field/field.api.php Perform alterations on Field API field types.
hook_field_info_entity_type_ui_definitions_alter core/modules/field/field.api.php Alters the UI field definitions.
hook_field_info_max_weight core/modules/field/field.api.php Returns the maximum weight for the entity components handled by the module.
hook_field_purge_field core/modules/field/field.api.php Acts when a field is being purged.

Other projects


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