Core Drupal Hooks [Part 1] Flashcards
perform alterations on the available fetchers
hook_aggregator_fetcher_info_alter
perform alterations on the available parsers
hook_aggregator_parser_info_alter
perform alterations on the available processors
hook_aggregator_processor_info_alter
alter the Ajax command data that is sent to the client
hook_ajax_render_alter
alter archiver information delcared by other modules
hook_archiver_info_alter
alter batch information before a batch is processed
hook_batch_alter
control access to a block instance
hook_block_access
alter the result of \Drupal\Core\Block\BlockBase::build()
hook_block_build_alter
proved a block plugin specific block_build alteration
hook_block_build_BASE_BLOCK_ID_alter
alter the result of \Drupal\Core\Block\BlockBase::build()
hook_block_view_alter
provide a block plugin specific block_view alteration
hook_block_view_BASE_BLOCK_ID_alter
flush all persistent and static caches
hook_cache_flush
modify the list of CSS files that will be added to a CKEditor instance
hook_ckeditor_css_alter
modify the list of available CKEditor plugins
hook_ckeditor_plugin_info_alter
alter the links of a comment
hook_comment_links_alter
alter the configuration synchronization steps
hook_config_import_steps_alter
alter config typed data definitions
hook_config_schema_info_alter
introduce dynamic translation tabs for translation of configuration
hook_config_translation_info
alter existing translation tabs for translatino of configuration
hook_config_translation_info_alter
alter contextual links before they are rendered
hook_contextual_links_alter
alter the plugin definition of contetual links
hook_contextual_links_plugins_alter
alter a contextual links element before it is rendered
hook_contextual_links_view_alter
alter the default country list
hook_countries_alter
perform periodic actions
hook_cron
alter CSS files before they are output on the page
hook_css_alter
alter available data types for typed dat wrappers
hook_data_type_info_alter
alter display variant plugin definitions
hook_display_variant_plugin_alter
perforsms alterations on text editor definitions
hook_editor_info_alter
modifies JavaScript settings that are added for text editors
hook_editor_js_settings_alter
modifies the text editor XSS filter that will be used for the given text format
hook_editor_xss_filter_alter
alter the element type information returne dfrom modules
hook_element_info_alter
alter element plugin definitions
hook_element_plugin_alter
control entity operation access
hook_entity_access
provides custom base field definitions for a content entity type
hook_entity_base_field_info
alter base field definitions for a content entity type
hook_entity_base_field_info_alter
alter entity renderable values before cache checking in drupal_render()
hook_entity_build_defaults_alter
act on entity_bundle_create()
hook_entity_bundle_create
act on entity_bundle_delete()
hook_entity_bundle_delete
provides field definitions for a specific bundle within an entity type
hook_entity_bundle_field_info
alter bundle field definitions
hook_entity_bundle_field_info_alter
acts when creating a new entity
hook_entity_create
control entity create access
hook_entity_create_access
respond to entity deletion
hook_entity_delete
alter the render array generated by an EntityDisplay for an entity
hook_entity_display_build_alter
exposes "pseudo-field" components on content entities
hook_entity_extra_field_info
alter "pseudo-field" components on content entities
hook_entity_extra_field_info_alter
control access to fields
hook_entity_field_access
alter the default access behavior for a given field
hook_entity_field_access_alter
provides filed storage definitions for a content entity type
hook_entity_field_storage_info
alter field storage definitions for a content entity type
hook_entity_field_storage_info_alter
alter the settings used for displaying an entity form
hook_entity_form_display_alter
respond to creation of a new entity
hook_entity_insert
act on entities when loaded
hook_entity_load
declares entity operations
hook_entity_operation
alter entity operations
hook_entity_operation_alter
act before entity deletion
hook_entity_predelete
act on an array of entity IDs before they are loaded
hook_entity_preload
acts on an entity object about to be shown on an entity form
hook_entity_prepare_form
act on entities as they are being prepared for view
hook_entity_prepare_view
act on an entity before it is created or updated
hook_entity_presave
respond to entity revision creation
hook_entity_revision_create
respond to entity revision deletion
hook_entity_revision_delete
act on content entities when loaded from the storage
hook_entity_storage_load
acts when creating a new entity translation
hook_entity_translation_create
respond to entity translation deletion
hook_entity_translation_delete
respond to creation of a new entity translation
hook_entity_translation_insert
control entity operation access for a specific entity type
hook_ENTITY_TYPE_access
alter the entity type definitions
hook_entity_type_alter
add to entity type definitions
hook_entity_type_build
alter entity renderable values before cache checking in drupal_render()
hook_ENTITY_TYPE_build_defaults_alter
acts when creating a new entity of a specific type
hook_ENTITY_TYPE_create
control entity create access for a specific entity type
hook_ENTITY_TYPE_create_access
respond to entity deletion of a particular type
hook_ENTITY_TYPE_delete
acts when initializing a fieldable entity object
hook_ENTITY_TYPE_field_values_init
respond to creation of a new entity of a particular type
hook_ENTITY_TYPE_insert
act on entities of a specific type when loaded
hook_ENTITY_TYPE_load
act before entity deletion of a particular entity type
hook_ENTITY_TYPE_predelete
acts on a particular type of entity object about to be in an entity form
hook_ENTITY_TYPE_prepare_form
act on a specific type of entity before it is created or updated
hook_ENTITY_TYPE_presave
respond to entity revision creation
hook_ENTITY_TYPE_revision_create
respond to entity revision deletion of a particular type
hook_ENTITY_TYPE_revision_delete
act on content entities of a given type when loaded from the storage
hook_ENTITY_TYPE_storage_load
acts when creating a new entity translation of a specific type
hook_ENTITY_TYPE_translation_create
respond to entity translation deletion of a particular type
hook_ENTITY_TYPE_translation_delete
respond to creation of a new entity translation of a particular type
hook_ENTITY_TYPE_translation_insert
respond to updates to an entity of a particular type
hook_ENTITY_TYPE_update
acts on entities of a particular type being assembled before rendering
hook_ENTITY_TYPE_view
alter the results of the entity build array for a particular entity type
hook_ENTITY_TYPE_view_alter
respond to updates to an entity
hook_entity_update
act on entities being assembled before rendering
hook_entity_view
alter the results of the entity build array
hook_entity_view_alter
alter the settings used for displaying an entity
hook_entity_view_display_alter
change the view mode of an entity that is being displayed
hook_entity_view_mode_alter
alter the view modes for entity types
hook_entity_view_mode_info_alter
alter the view modes for entity types
hook_field_formatter_info_alter
perform alterations on Field API field types
hook_field_info_alter
returns the maximum weight for the entity components handled by the module
hook_field_info_max_weight
acts when a field is being purged
hook_field_purge_field
acts when a field storage definition is being purged
hook_field_purge_field_storage
forbid a field storage update from occuring
hook_field_storage_config_update_forbid
perform alterations on preconfigured field options
hook_field_ui_preconfigured_options_alter
override the default Views data for Field API field
hook_field_views_data
alter the Views data for a single Field API field
hook_field_views_data_alter
alter the Views data on a per field basis
hook_field_views_data_views_data_alter
alter forms for field widgets provided by other modules
hook_field_widget_form_alter
perform alterations on Field API widget types
hook_field_widget_info_alter
alter forms for multi-value field widgets provided by other modules
hook_field_widget_multivalue_form_alter
alter multi-value widget forms for a widget provided by another module
hook_field_widget_multivalue_WIDGET_TYPE_form_alter
alter widget forms for a specific widget provided by another module
hook_field_widget_WIDGET_TYPE_form_alter
register information about FileTransfer classes provided by a module
hook_filetransfer_info
alter the FileTransfer class registry
hook_filetransfer_info_alter
respond to a file that has been copied
hook_file_copy
control access to private file downloads and specify HTTP headers
hook_file_download
alter MIME type mappings used to determine MIME type from a file extension
hook_file_mimtype_mapping_alter
respond to a file that has been moved
hook_file_move
alter the URL to a file
hook_file_url_alter
check the files meet a given criteria
hook_file_validate
perform actions when a text format has been disabled
hook_filter_format_disable
perform alterations on filter definitions
hook_filter_info_alter
alters images with an invalid source
hook_filter_secure_image_alter
perform alterations before a form is rendered
hook_form_alter
provide a form-specific alteration for shared ('base') forms
hook_form_BASE_FORM_ID_alter
provide a form-specific alteration instead of the global hook_form_alter()
hook_form_FORM_ID_alter
allow themes to alter the theme-specific settings form
hook_form_system_theme_settings_alter
alter the HAL relation URI
hook_hal_relation_uri_alter
alter the HAL type URI
hook_hal_type_uri_alter
provide online user help
hook_help
perform alterations on help page section plugin definitions
hook_help_section_info_alter
perform alterations on help topic definitions
hook_help_topics_info_alter
defines one or more hooks that are exposed by a module
hook_hook_info
alter the information provided in \Drupal\image\Annotation\ImageEffect
hook_image_effect_info_alter
respond to image style flushing
hook_image_style_flush
perform setup tasks when the module is installed
hook_install
alter the full list of installation tasks
hook_install_tasks_alter
restricts filtering access to the given field
hook_jsonapi_entity_field_filter_access
controls access when filtering by entity data via JSON:API
hook_jsonapi_entity_filter_access
controls access to filtering by entity data via JSON:API
hook_jsonapi_ENTITY_TYPE_filter_access
perform necessary alterations to the JavaSCript settings (drupalSettings)
hook_js_settings_alter
modify the JavaScript settings (drupalSettings)
hook_js_settings_build
allow modules to alter the language fallback candidates
hook_language_fallback_candidates_alter
allow modules to alter the fallback candidates for specific operations
hook_language_fallback_candidates_OPERATION_alter
perform alterations on language negotiation methods
hook_language_negotiation_info_alter
perform alterations on language switcher links
hook_language_switch_links_alter
define language types
hook_language_types_info
perform alterations on language types
hook_language_types_info_alter
allow modules to alter layout plugin definitions
hook_layout_alter
alter libraries provided by an extension
hook_library_info_alter
add dynamic library definitions
hook_library_info_build