Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
_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
_field_create_entity_from_ids

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

core/modules/field/field.module Assembles a partial entity structure with initial IDs.
_file_save_upload_from_form core/modules/file/file.module Saves form file uploads. 5
_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_tips

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

core/modules/filter/filter.module Retrieves the filter tips.
_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_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 core/modules/locale/locale.module Force the JavaScript translation file(s) to be refreshed. 4 1
_locale_parse_js_file core/modules/locale/locale.module Parses a JavaScript file, extracts translatable strings, and saves them. 2
_locale_rebuild_js core/modules/locale/locale.module Creates or recreates the JavaScript translation file for a language. 2
_locale_refresh_configuration core/modules/locale/locale.module Refreshes configuration after string translations have been updated. 1
_locale_refresh_translations core/modules/locale/locale.module Refresh related information after string translations have been updated. 3
_locale_strip_quotes core/modules/locale/locale.module Removes the quotes and string concatenations from the string. 1
_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.
_menu_ui_node_save

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\MenuUiUtility::menuUiNodeSave() instead.

core/modules/menu_ui/menu_ui.module Helper function to create or update a menu link for a node.
_olivero_hex_to_hsl core/themes/olivero/olivero.theme Converts hex color strings to array of HSL values.
_options_values_in_use core/modules/options/options.module Checks if a list of values are being used in actual field values. 2
_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. 2
_test_batch_test_callback core/modules/system/tests/modules/test_batch_test/test_batch_test.install Callback for batch operations. 1
_toolbar_get_subtrees_hash core/modules/toolbar/toolbar.module Returns the hash of the user-rendered toolbar subtrees and cacheability. 1

Other projects


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