Functions - main - drupal
| Title | Deprecated | File name | Summary | Direct uses | Strings |
|---|---|---|---|---|---|
| hook_field_purge_field_storage | core/ |
Acts when a field storage definition is being purged. | |||
| hook_field_storage_config_update_forbid | core/ |
Forbid a field storage update from occurring. | |||
| hook_field_type_category_info_alter | core/ |
Allows modules to alter the field type category information. | |||
| hook_field_ui_preconfigured_options_alter | core/ |
Perform alterations on preconfigured field options. | |||
| hook_field_views_data | core/ |
Override the default Views data for a Field API field. | |||
| hook_field_views_data_alter | core/ |
Alter the Views data for a single Field API field. | |||
| hook_field_views_data_views_data_alter | core/ |
Alter the Views data on a per field basis. | |||
| hook_field_widget_complete_form_alter | core/ |
Alter the complete form for field widgets provided by other modules. | 3 | ||
| hook_field_widget_complete_WIDGET_TYPE_form_alter | core/ |
Alter the complete form for a specific widget provided by other modules. | 4 | ||
| hook_field_widget_info_alter | core/ |
Perform alterations on Field API widget types. | |||
| hook_field_widget_settings_summary_alter | core/ |
Alters the field widget settings summary. | |||
| hook_field_widget_single_element_form_alter | core/ |
Alter forms for field widgets provided by other modules. | |||
| hook_field_widget_single_element_WIDGET_TYPE_form_alter | core/ |
Alter widget forms for a specific widget provided by another module. | |||
| hook_field_widget_third_party_settings_form | core/ |
Allow modules to add settings to field widgets provided by other modules. | |||
| hook_file_copy | core/ |
Respond to a file that has been copied. | |||
| hook_file_download | core/ |
Control access to private file downloads and specify HTTP headers. | |||
| hook_file_mimetype_mapping_alter | in drupal:11.2.0 and is removed from drupal:12.0.0. Create a \Drupal\Core\File\Event\MimeTypeMapLoadedEvent subscriber instead. It is used to allow modules to add to or modify the default mapping of MIME type to file extensions. |
core/ |
Alter MIME type mappings used to determine MIME type from a file extension. | ||
| hook_file_move | core/ |
Respond to a file that has been moved. | |||
| hook_file_url_alter | core/ |
Alter the URL to a file. | |||
| hook_filter_format_disable | core/ |
Perform actions when a text format has been disabled. | |||
| hook_filter_info_alter | core/ |
Perform alterations on filter definitions. | |||
| hook_filter_secure_image_alter | core/ |
Alters images with an invalid source. | |||
| hook_form_alter | core/ |
Perform alterations before a form is rendered. | |||
| hook_form_BASE_FORM_ID_alter | core/ |
Provide a form-specific alteration for shared ('base') forms. | |||
| hook_form_FORM_ID_alter | core/ |
Provide a form-specific alteration instead of the global hook_form_alter(). | |||
| hook_form_system_theme_settings_alter | core/ |
Allow themes to alter the theme-specific settings form. | |||
| hook_help | core/ |
Provide online user help. | |||
| hook_help_section_info_alter | core/ |
Perform alterations on help page section plugin definitions. | |||
| hook_help_topics_info_alter | core/ |
Perform alterations on help topic definitions. | |||
| hook_image_effect_info_alter | core/ |
Alter the information provided in \Drupal\image\Annotation\ImageEffect. | |||
| hook_image_style_flush | core/ |
Respond to image style flushing. | |||
| hook_install | core/ |
Perform setup tasks when the module is installed. | |||
| hook_install_tasks | core/ |
Return an array of tasks to be performed by an installation profile. | |||
| hook_install_tasks_alter | core/ |
Alter the full list of installation tasks. | |||
| hook_jsonapi_entity_field_filter_access | core/ |
Restricts filtering access to the given field. | |||
| hook_jsonapi_entity_filter_access | core/ |
Controls access when filtering by entity data via JSON:API. | |||
| hook_jsonapi_ENTITY_TYPE_filter_access | core/ |
Controls access to filtering by entity data via JSON:API. | |||
| hook_js_alter | core/ |
Alters JavaScript before it is presented on the page. | |||
| hook_js_settings_alter | core/ |
Perform necessary alterations to the JavaScript settings (drupalSettings). | |||
| hook_js_settings_build | core/ |
Modify the JavaScript settings (drupalSettings). | |||
| hook_language_fallback_candidates_alter | core/ |
Allow modules to alter the language fallback candidates. | |||
| hook_language_fallback_candidates_OPERATION_alter | core/ |
Allow modules to alter the fallback candidates for specific operations. | |||
| hook_language_negotiation_info_alter | core/ |
Perform alterations on language negotiation methods. | |||
| hook_language_switch_links_alter | core/ |
Perform alterations on language switcher links. | |||
| hook_language_types_info | core/ |
Define language types. | |||
| hook_language_types_info_alter | core/ |
Perform alterations on language types. | |||
| hook_layout_alter | core/ |
Allow modules to alter layout plugin definitions. | |||
| hook_library_info_alter | core/ |
Alter libraries provided by an extension. | |||
| hook_library_info_build | core/ |
Add dynamic library definitions. | |||
| hook_link_alter | core/ |
Alter the parameters for links. |
Pagination
- Previous page
- Page 8
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.