Functions - 8.9.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
content_translation_test_entity_access core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module Implements hook_entity_access().
content_translation_test_entity_bundle_info_alter core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module Implements hook_entity_bundle_info_alter().
content_translation_test_form_node_form_alter core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module Implements hook_form_BASE_FORM_ID_alter().
content_translation_test_form_node_form_submit core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module Form submission handler for custom field added based on a request parameter. 1
content_translation_translate_access core/modules/content_translation/content_translation.module Access callback for the translation overview page. 1 1
content_translation_update_8001 core/modules/content_translation/content_translation.install Rebuild the routes as the content translation routes have now new names.
content_translation_update_8002 core/modules/content_translation/content_translation.install Clear field type plugin caches to fix image field translatability.
content_translation_update_8400 core/modules/content_translation/content_translation.install Fix the initial values for content translation metadata fields.
content_translation_views_data_alter core/modules/content_translation/content_translation.module Implements hook_views_data_alter().
contextual_contextual_links_view_alter core/modules/contextual/contextual.module Implements hook_contextual_links_view_alter().
contextual_help core/modules/contextual/contextual.module Implements hook_help().
contextual_page_attachments core/modules/contextual/contextual.module Implements hook_page_attachments().
contextual_post_update_fixed_endpoint_and_markup core/modules/contextual/contextual.post_update.php Ensure new page loads use the updated JS and get the updated markup.
contextual_preprocess core/modules/contextual/contextual.module Implements hook_preprocess().
contextual_test_block_view_alter core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_block_view_alter().
contextual_test_contextual_links_view_alter core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_contextual_links_view_alter().
contextual_test_page_attachments_alter core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_page_attachments_alter().
contextual_toolbar core/modules/contextual/contextual.module Implements hook_toolbar().
contextual_views_data_alter core/modules/contextual/contextual.views.inc Implements hook_views_data_alter().
core_field_views_data core/modules/views/views.views.inc Implements hook_field_views_data().
css_disable_transitions_test_page_attachments core/modules/system/tests/modules/css_disable_transitions_test/css_disable_transitions_test.module Implements hook_page_attachments().
database_test_query_alter core/modules/system/tests/modules/database_test/database_test.module Implements hook_query_alter().
database_test_query_database_test_alter_remove_range_alter core/modules/system/tests/modules/database_test/database_test.module Implements hook_query_TAG_alter().
database_test_schema core/modules/system/tests/modules/database_test/database_test.install Implements hook_schema().
datetime_date_default_time

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Datetime\DateTimePlus::setDefaultDateTime() or \Drupal\Core\Datetime\DrupalDateTime::setDefaultDateTime() instead.

core/modules/datetime/datetime.module Sets a consistent time on a date without time.
datetime_field_views_data core/modules/datetime/datetime.views.inc Implements hook_field_views_data().
datetime_help core/modules/datetime/datetime.module Implements hook_help().
datetime_range_field_views_data core/modules/datetime_range/datetime_range.views.inc Implements hook_field_views_data().
datetime_range_help core/modules/datetime_range/datetime_range.module Implements hook_help().
datetime_range_post_update_translatable_separator core/modules/datetime_range/datetime_range.post_update.php Clear caches to ensure schema changes are read.
datetime_range_post_update_views_string_plugin_id core/modules/datetime_range/datetime_range.post_update.php Update existing views using datetime_range fields.
datetime_range_test_entity_type_alter core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.module Implements hook_entity_type_alter().
datetime_range_view_presave

in drupal:8.5.0 and is removed from drupal:9.0.0.

core/modules/datetime_range/datetime_range.module Implements hook_ENTITY_TYPE_presave().
datetime_type_field_views_data_helper core/modules/datetime/datetime.views.inc Provides Views integration for any datetime-based fields. 2
date_iso8601

in drupal:8.7.0 and is removed from drupal:9.0.0. Use date('c', $date) instead.

core/includes/common.inc Returns an ISO8601 formatted date based on the given date. 1
dblog_cron core/modules/dblog/dblog.module Implements hook_cron().
dblog_filters core/modules/dblog/dblog.admin.inc Creates a list of database log administration filters that can be applied. 3
dblog_form_system_logging_settings_alter core/modules/dblog/dblog.module Implements hook_form_FORM_ID_alter() for system_logging_settings().
dblog_help core/modules/dblog/dblog.module Implements hook_help().
dblog_logging_settings_submit core/modules/dblog/dblog.module Form submission handler for system_logging_settings(). 1
dblog_menu_links_discovered_alter core/modules/dblog/dblog.module Implements hook_menu_links_discovered_alter().
dblog_post_update_convert_recent_messages_to_view core/modules/dblog/dblog.post_update.php Replace 'Recent log messages' with a view.
dblog_schema core/modules/dblog/dblog.install Implements hook_schema().
dblog_update_8400 core/modules/dblog/dblog.install Use standard plugin for wid and uid fields. Use dblog_types for type filter.
dblog_update_8600 core/modules/dblog/dblog.install Change 'No logs message available.' area plugin type.
dblog_views_data core/modules/dblog/dblog.views.inc Implements hook_views_data().
dblog_views_pre_render core/modules/dblog/dblog.module Implements hook_views_pre_render().
dblog_view_presave

in drupal:8.4.0 and is removed from drupal:9.0.0.

core/modules/dblog/dblog.module Implements hook_ENTITY_TYPE_presave() for views entities.
db_add_field

in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addField() on it. For example, $injected_database->schema()->addField($table, $field, $spec, $keys_new);

core/includes/database.inc Adds a new field to a table. 1
db_add_index

in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container, get its schema driver, and call addIndex() on it. For example, $injected_database->schema()->addIndex($table, $name, $fields, $spec);

core/includes/database.inc Adds an index. 1

Other projects


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