Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
_comment_entity_uses_integer_id

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId() instead.

core/modules/comment/comment.module Determines if an entity type is using an integer-based ID definition.
_contextual_id_to_links

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contextual\ContextualLinksSerializer::idToLinks() instead.

core/modules/contextual/contextual.module Unserializes the result of ContextualLinksSerializer::linksToId().
_contextual_links_to_id

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contextual\ContextualLinksSerializer::linksToId() instead.

core/modules/contextual/contextual.module Serializes #contextual_links property value array to a string.
_dblog_get_message_types

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\dblog\DbLogFilters::class)->getMessageTypes() instead.

core/modules/dblog/dblog.module Gathers a list of uniquely defined database log message types.
_drupal_error_handler core/includes/bootstrap.inc Provides custom PHP error handling. 6
_drupal_error_handler_real core/includes/errors.inc Provides custom PHP error handling. 1
_drupal_error_header core/includes/errors.inc Adds error information to headers so that tests can access it. 2
_drupal_exception_handler core/includes/bootstrap.inc Provides custom PHP exception handling. 4
_drupal_exception_handler_additional core/includes/bootstrap.inc Displays any additional errors caught while handling an exception. 1
_drupal_get_error_level core/includes/errors.inc Returns the current error level. 2
_drupal_log_error core/includes/errors.inc Logs a PHP error or exception and displays an error page in fatal cases. 2
_drupal_maintenance_theme core/includes/theme.maintenance.inc Sets up the theming system for maintenance page. 1 1
_drupal_shutdown_function core/includes/bootstrap.inc Executes registered shutdown functions. 1 1
_drupal_shutdown_function_handle_exception core/includes/bootstrap.inc Displays and logs any errors that may happen during shutdown. 1
_file_save_upload_from_form

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

core/modules/file/file.module Saves form file uploads.
_filter_autop

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterAutoP::process() and no replacement is provided.

core/modules/filter/filter.module Converts line breaks into <p> and <br> in an intelligent fashion.
_filter_html_escape

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterHtmlEscape::process() and no replacement is provided.

core/modules/filter/filter.module Escapes all HTML tags, so they will be visible instead of being effective.
_filter_html_image_secure_process

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic is included in \Drupal\filter\Plugin\Filter\FilterHtmlImageSecure::process() and no replacement is provided.

core/modules/filter/filter.module Process callback for local image filter.
_filter_url

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::process() and no replacement is provided.

core/modules/filter/filter.module Converts text into hyperlinks automatically.
_filter_url_escape_comments

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been split between \Drupal\filter\Plugin\Filter\FilterUrl::escapeComments() and \Drupal\filter\Plugin\Filter\FilterUrl::unescapeComments(), and no replacement is provided.

core/modules/filter/filter.module Escapes the contents of HTML comments.
_filter_url_parse_email_links

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseEmailLinks() and no replacement is provided.

core/modules/filter/filter.module Makes links out of email addresses.
_filter_url_parse_full_links

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseFullLinks() and no replacement is provided.

core/modules/filter/filter.module Makes links out of absolute URLs.
_filter_url_parse_partial_links

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parsePartialLinks() and no replacement is provided.

core/modules/filter/filter.module Makes links out of domain names starting with "www.".
_filter_url_trim

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::trimUrl() and no replacement is provided.

core/modules/filter/filter.module Shortens a long URL to a given length ending with an ellipsis. 3
_install_config_locale_overrides core/includes/install.core.inc Creates a batch to process config translations after installing from config. 1
_install_config_locale_overrides_process_batch core/includes/install.core.inc Batch operation callback for install_config_locale_overrides(). 1
_install_get_database_module_name core/includes/install.core.inc Gets the database driver module name. 2
_install_get_version_info core/includes/install.core.inc Extracts version information from a Drupal core version string. 1
_install_module_batch core/includes/install.core.inc Implements callback_batch_operation(). 2
_install_select_profile core/includes/install.core.inc Determines the installation profile to use in the installer. 2
_locale_invalidate_js

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

core/modules/locale/locale.module Force the JavaScript translation file(s) to be refreshed.
_locale_parse_js_file

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

core/modules/locale/locale.module Parses a JavaScript file, extracts translatable strings, and saves them.
_locale_rebuild_js

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

core/modules/locale/locale.module Creates or recreates the JavaScript translation file for a language.
_locale_refresh_configuration

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

core/modules/locale/locale.module Refreshes configuration after string translations have been updated.
_locale_refresh_translations

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

core/modules/locale/locale.module Refresh related information after string translations have been updated.
_locale_strip_quotes

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

core/modules/locale/locale.module Removes the quotes and string concatenations from the string.
_locale_translation_batch_status_operations

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->getStatusOperations() instead.

core/modules/locale/locale.compare.inc Constructs batch operations for checking remote translation status.
_locale_translation_fetch_operations

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

core/modules/locale/locale.fetch.inc Helper function to construct the batch operations to fetch translations.
_locale_translation_prepare_project_list

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

core/modules/locale/locale.compare.inc Prepare module and theme data. 1
_media_get_add_url

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

core/modules/media/media.module Returns the appropriate URL to add media for the current user.
_media_library_configure_form_display core/modules/media_library/media_library.module Ensures that the given media type has a media_library form display. 1
_media_library_configure_view_display core/modules/media_library/media_library.module Ensures that the given media type has a media_library view display. 1
_media_library_media_type_form_submit core/modules/media_library/media_library.module Submit callback for media type form.
_media_library_views_form_media_library_after_build core/modules/media_library/media_library.module Form #after_build callback for media_library view's exposed filters form.
_menu_link_content_update_path_alias

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

core/modules/menu_link_content/menu_link_content.module Helper function to update plugin definition using internal scheme.
_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

Other projects


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