Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
locale_translation_batch_version_check

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

core/modules/locale/locale.batch.inc Implements callback_batch_operation().
locale_translation_build_projects

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

core/modules/locale/locale.compare.inc Builds list of projects and stores the result in the database.
locale_translation_build_server_pattern

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->buildServerPattern($project, $template) instead.

core/modules/locale/locale.translation.inc Build path to translation source, out of a server path replacement pattern.
locale_translation_build_sources

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->sourceBuild($project, $langcode) instead.

core/modules/locale/locale.translation.inc Build translation sources.
locale_translation_check_projects

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

core/modules/locale/locale.compare.inc Check for the latest release of project translations.
locale_translation_check_projects_batch

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

core/modules/locale/locale.compare.inc Gets and stores the status and timestamp of remote po files.
locale_translation_check_projects_local

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

core/modules/locale/locale.compare.inc Check and store the status and timestamp of local po files.
locale_translation_clear_cache_projects

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('cache.memory')->delete('locale_get_projects') instead.

core/modules/locale/locale.translation.inc Clears the projects cache.
locale_translation_clear_status

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

core/modules/locale/locale.module Clear the translation status cache.
locale_translation_default_translation_server

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

core/modules/locale/locale.compare.inc Retrieve data for default server.
locale_translation_download_source

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->downloadTranslationSource($source_file, $directory) instead.

core/modules/locale/locale.batch.inc Downloads a translation file from a remote server.
locale_translation_file_history_delete

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

core/modules/locale/locale.module Deletes the history of downloaded translations.
locale_translation_flush_projects

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

core/modules/locale/locale.compare.inc Clear the project data table.
locale_translation_get_file_history

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no direct replacement use \Drupal::service(CurrentImportStorage::class)->get() with the project and langcode instead.

core/modules/locale/locale.module Gets current translation status from the {locale_file} table. 1
locale_translation_get_projects

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectRepository::class) ->getAll() or \Drupal::service(LocaleProjectRepository::class) ->getMultiple($project_names)instead.

core/modules/locale/locale.translation.inc Get array of projects which are available for interface translation. 1
locale_translation_get_status

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

core/modules/locale/locale.module Gets the current translation status.
locale_translation_http_check

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class)checkRemoteFileStatus($uri) instead.

core/modules/locale/locale.batch.inc Check if remote file exists and when it was last updated.
locale_translation_language_table core/modules/locale/locale.module Form element callback: After build changes to the language update table. 1
locale_translation_load_sources

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->loadSources($projects, $langcodes) instead.

core/modules/locale/locale.translation.inc Loads cached translation sources containing current translation status.
locale_translation_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 Fetch an array of projects for translation update. 1
locale_translation_source_build

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class) ->sourceBuild($project, $langcode, $filename) instead.

core/modules/locale/locale.translation.inc Builds abstract translation source.
locale_translation_source_check_file

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->sourceCheckFile($source) instead.

core/modules/locale/locale.translation.inc Checks whether a po file exists in the local filesystem.
locale_translation_status_delete_languages

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

core/modules/locale/locale.module Delete language entries from the status cache.
locale_translation_status_delete_projects

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

core/modules/locale/locale.module Delete project entries from the status cache.
locale_translation_status_save

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

core/modules/locale/locale.module Saves the status of translation sources in static cache.
locale_translation_update_file_history

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

core/modules/locale/locale.module Updates the {locale_file} table.
locale_translation_use_remote_source core/modules/locale/locale.module Checks whether remote translation sources are used. 6
locale_uninstall core/modules/locale/locale.install Implements hook_uninstall().
locale_update_11401 core/modules/locale/locale.install Add a hash column to the {locale_file} table.
locale_update_last_removed core/modules/locale/locale.install Implements hook_update_last_removed().
media_filter_format_edit_form_validate

in drupal:11.4.0 and is removed from drupal:12.0.0. Use MediaHooks::formatEditFormValidate() instead.

core/modules/media/media.module Validate callback to ensure filter order and allowed_html are compatible.
media_install core/modules/media/media.install Implements hook_install().
media_library_install core/modules/media_library/media_library.install Implements hook_install().
media_library_removed_post_updates core/modules/media_library/media_library.post_update.php Implements hook_removed_post_updates().
media_library_update_last_removed core/modules/media_library/media_library.install Implements hook_update_last_removed().
media_removed_post_updates core/modules/media/media.post_update.php Implements hook_removed_post_updates().
media_update_last_removed core/modules/media/media.install Implements hook_update_last_removed().
menu_link_content_removed_post_updates core/modules/menu_link_content/menu_link_content.post_update.php Implements hook_removed_post_updates().
menu_link_content_update_last_removed core/modules/menu_link_content/menu_link_content.install Implements hook_update_last_removed().
menu_ui_form_node_form_submit

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::formNodeFormSubmit() instead.

core/modules/menu_ui/menu_ui.module Form submission handler for menu item field on the node form.
menu_ui_form_node_type_form_builder

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::formNodeTypeFormBuilder() instead.

core/modules/menu_ui/menu_ui.module Entity builder for the node type form with menu options.
menu_ui_form_node_type_form_validate

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::formNodeTypeFormValidate() instead.

core/modules/menu_ui/menu_ui.module Validate handler for forms with menu options.
menu_ui_get_menu_link_defaults

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

core/modules/menu_ui/menu_ui.module Returns the definition for a menu link for the given node.
menu_ui_node_builder

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\menu_ui\Hooks\MenuUiHooks::nodeBuilder() instead.

core/modules/menu_ui/menu_ui.module Entity form builder to add the menu information to the node.
microtime core/tests/Drupal/Tests/Component/Datetime/TimeTest.php Shadow microtime system call.
migrate_drupal_post_update_migrate_drupal_uninstall core/modules/migrate_drupal/migrate_drupal.post_update.php Uninstall Migrate Drupal if installed.
migrate_drupal_ui_install core/modules/migrate_drupal_ui/migrate_drupal_ui.install Implements hook_install().
migrate_drupal_ui_post_update_migrate_drupal_ui_uninstall core/modules/migrate_drupal_ui/migrate_drupal_ui.post_update.php Uninstall Migrate Drupal UI if installed.
migrate_drupal_uninstall core/modules/migrate_drupal/migrate_drupal.install Implements hook_uninstall().
migrate_drupal_update_last_removed core/modules/migrate_drupal/migrate_drupal.install Implements hook_update_last_removed().

Other projects


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