Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
language_negotiation_url_prefixes_update

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

core/modules/language/language.module Update the list of prefixes from the installed languages.
language_process_language_select

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\language\Hook\LanguageHooks::processLanguageSelect() instead.

core/modules/language/language.module Processes a language select list form element.
language_removed_post_updates core/modules/language/language.post_update.php Implements hook_removed_post_updates().
language_update_last_removed core/modules/language/language.install Implements hook_update_last_removed().
layout_builder_removed_post_updates core/modules/layout_builder/layout_builder.post_update.php Implements hook_removed_post_updates().
layout_builder_schema core/modules/layout_builder/layout_builder.install Implements hook_schema().
layout_builder_update_12001 core/modules/layout_builder/layout_builder.install Uninstall the layout_builder_expose_all_field_blocks module.
layout_builder_update_last_removed core/modules/layout_builder/layout_builder.install Implements hook_update_last_removed().
layout_discovery_removed_post_updates core/modules/layout_discovery/layout_discovery.post_update.php Implements hook_removed_post_updates().
legacy_hook_test_test1 core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module #[LegacyHook]
legacy_hook_test_test2 core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module
locale_config_batch_build

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleConfigBatch::class)->buildBatch() instead the arguments have changed.

core/modules/locale/locale.bulk.inc Creates a locale batch to refresh specific configuration.
locale_config_batch_finished

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

core/modules/locale/locale.bulk.inc Implements callback_batch_finished().
locale_config_batch_update_components

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

core/modules/locale/locale.bulk.inc Builds a locale batch to refresh configuration.
locale_config_batch_update_config_translations

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

core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_config_batch_update_default_config_langcodes

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

core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_cron_fill_queue

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

core/modules/locale/locale.translation.inc Populate a queue with project to check for translation updates.
locale_form_language_admin_add_form_alter_submit core/modules/locale/locale.module Form submission handler for language_admin_add_form(). 1
locale_form_language_admin_edit_form_alter_submit core/modules/locale/locale.module Form submission handler for language_admin_edit_form(). 1
locale_get_plural core/modules/locale/locale.module Returns plural form index for a specific number. 2 2
locale_install core/modules/locale/locale.install Implements hook_install().
locale_is_translatable core/modules/locale/locale.module Checks whether $langcode is a language supported as a locale target. 8
locale_js_translate core/modules/locale/locale.module Returns a list of translation files given a list of JavaScript files. 1
locale_post_update_clear_translation_path_config core/modules/locale/locale.post_update.php Removes the translation.path config.
locale_removed_post_updates core/modules/locale/locale.post_update.php Implements hook_removed_post_updates().
locale_schema core/modules/locale/locale.install Implements hook_schema().
locale_string_is_safe core/modules/locale/locale.module Check that a string is safe to be added or imported as a translation. 5
locale_system_file_system_settings_submit

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

core/modules/locale/locale.module Submit handler for the file system settings form.
locale_system_remove core/modules/locale/locale.module Delete translation history of modules and themes. 2
locale_system_set_config_langcodes core/modules/locale/locale.module Updates default configuration when new modules or themes are installed. 2
locale_system_update core/modules/locale/locale.module Imports translations when new modules or themes are installed. 2
locale_test_uninstall core/modules/locale/tests/modules/locale_test/locale_test.install Implements hook_uninstall().
locale_translatable_language_list core/modules/locale/locale.module Returns list of translatable languages. 14
locale_translate_batch_build

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

core/modules/locale/locale.bulk.inc Build a locale batch from an array of files.
locale_translate_batch_finished

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

core/modules/locale/locale.bulk.inc Implements callback_batch_finished().
locale_translate_batch_import

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

core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_translate_batch_import_save

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

core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_translate_batch_refresh

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

core/modules/locale/locale.bulk.inc Implements callback_batch_operation().
locale_translate_delete_translation_files

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

core/modules/locale/locale.bulk.inc Deletes interface translation files and translation history records.
locale_translate_file_attach_properties

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile::createFromPath($filename, $uri, $langCodeOverride) instead.

core/modules/locale/locale.bulk.inc Generates file properties from filename and options.
locale_translate_file_create

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile instead.

core/modules/locale/locale.bulk.inc Creates a file object and populates the timestamp and hash properties.
locale_translate_get_interface_translation_files

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

core/modules/locale/locale.bulk.inc Get interface translation files present in the translations directory.
locale_translation_batch_fetch_build

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

core/modules/locale/locale.fetch.inc Builds a batch to download and import project translations.
locale_translation_batch_fetch_download

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

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

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

core/modules/locale/locale.batch.inc Implements callback_batch_finished().
locale_translation_batch_fetch_import

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

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

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectChecker::class)->triggerBatch() instead, this now calls batch_set immediately instead of returning the array.

core/modules/locale/locale.compare.inc Builds a batch to get the status of remote and local translation files.
locale_translation_batch_status_check

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

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

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

core/modules/locale/locale.batch.inc Implements callback_batch_finished().
locale_translation_batch_update_build

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

core/modules/locale/locale.fetch.inc Builds a batch to check, download and import project translations.

Other projects


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