Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
_olivero_hex_to_hsl core/themes/olivero/olivero.theme Converts hex color strings to array of HSL values.
_options_values_in_use

in drupal:11.5.0 and is removed from drupal:13.0.0. The logic has been moved into \Drupal\options\Hook\OptionsHooks::hasValuesInUse() protected method and no replacement is provided.

core/modules/options/options.module Checks if a list of values are being used in actual field values.
_responsive_image_build_source_attributes

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::buildSourceAttributes() instead.

core/modules/responsive_image/responsive_image.module Helper function for template_preprocess_responsive_image().
_responsive_image_image_style_url

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::getImageStyleUrl() instead.

core/modules/responsive_image/responsive_image.module Wrapper around image_style_url() so we can return an empty image.
_search_find_match_with_simplify core/modules/search/search.module Finds an appropriate keyword in text. 1
_settings_tray_has_block_overrides core/modules/settings_tray/settings_tray.module Checks if a block has overrides. 3
_system_default_theme_features

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Extension\ThemeSettingsProvider::DEFAULT_THEME_FEATURES instead.

core/includes/theme.inc Returns an array of default theme features.
_system_test_first_shutdown_function core/modules/system/tests/modules/system_test/system_test.module Dummy shutdown function which registers another shutdown function. 2
_system_test_second_shutdown_function core/modules/system/tests/modules/system_test/system_test.module Dummy shutdown function. 3
_test_batch_test_callback core/modules/system/tests/modules/test_batch_test/test_batch_test.install Callback for batch operations. 1
_test_module_discovery_deprecation core/modules/system/tests/modules/test_module_discovery_deprecation/test_module_discovery_deprecation.module We need a function to trigger the deprecation.
_test_module_scan_stop_deprecation core/modules/system/tests/modules/test_module_scan_stop_deprecation/test_module_scan_stop_deprecation.module The first function stops the scan but is not marked as converted.
_toolbar_get_subtrees_hash core/modules/toolbar/toolbar.module Returns the hash of the user-rendered toolbar subtrees and cacheability. 1
_update_ckeditor5_html_filter

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\ckeditor5\Hook\Ckeditor5Hooks::updateCkeditor5HtmlFilter() instead.

core/modules/ckeditor5/ckeditor5.module AJAX callback handler for filter_format_form().
_update_cron_notify core/modules/update/update.fetch.inc Performs any notifications that should be done once cron fetches new data.
_update_fix_missing_schema

in drupal:11.5.0 and is removed from drupal:13.0.0. This function was for internal use only and has no replacement.

core/includes/update.inc Helper to detect and fix 'missing' schema information.
_update_message_text

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\update\UpdateMessageTrait::getText() instead.

core/modules/update/update.module Returns the appropriate message text when site is out of date or not secure.
_update_no_data

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\update\UpdateMessageTrait::noData() instead.

core/modules/update/update.module Returns a warning message when there is no data about available updates.
_update_project_status_sort

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/update/update.module Orders projects based on their status.
_user_cancel

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(AccountCancellation::class)->cancelAccount() instead.

core/modules/user/user.module Implements callback_batch_operation().
_user_cancel_session_regenerate

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\AccountCancellation::regenerateSession() instead.

core/modules/user/user.module Implements callback_batch_finished().
_user_mail_notify

in drupal:11.5.0 and is removed from drupal:13.0.0. Use the methods from Drupal\user\NotificationHandler service instead.

core/modules/user/user.module Creates and sends a notification email following a change to a user account. 4
_views_query_tag_alter_condition

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/views/views.module Replaces the substitutions recursive foreach condition.
_views_ui_wrap_views_form_helper_traits

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/views_ui/admin.inc Provides a BC layer for procedural deprecated function.

Other projects


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