Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
language_get_browser_drupal_langcode_mappings core/modules/language/language.module

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

function
language_get_default_langcode core/modules/language/language.module

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

function 1
language_negotiation_url_prefixes_update core/modules/language/language.module

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

function
language_process_language_select core/modules/language/language.module

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

function
LibraryDiscovery core/lib/Drupal/Core/Asset/LibraryDiscovery.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Asset\LibraryDiscoveryCollector instead.

class
LinkOptions core/modules/menu_link_content/src/Plugin/migrate/process/LinkOptions.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\migrate\Plugin\migrate\process\LinkOptions instead.

Examples:

class
LinkUri core/modules/menu_link_content/src/Plugin/migrate/process/LinkUri.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\migrate\Plugin\migrate\process\LinkUri instead.

Converts the source path value to an 'entity:', 'internal:' or 'base:' URI.

Available configuration keys:

  • source: A source path to be converted into an URI.
  • validate_route: (optional) Whether the plugin should validate that the URI derived from the source link path has a valid Drupal route.

    • TRUE: Throw a MigrateException if the resulting URI is not routed. This value is the default.
    • FALSE: Return the URI for the unrouted path.

Examples:

class 1
ListingEmpty core/modules/block_content/src/Plugin/views/area/ListingEmpty.php

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

class
LocaleProjectStorage core/modules/locale/src/LocaleProjectStorage.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\locale\LocaleProjectRepository instead.

class 1
LocaleProjectStorageInterface core/modules/locale/src/LocaleProjectStorageInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\locale\LocaleProjectRepository instead.

interface 1
LocaleSource::buildSources core/modules/locale/src/LocaleSource.php

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

function
locale_config_batch_build core/modules/locale/locale.bulk.inc

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

function
locale_config_batch_finished core/modules/locale/locale.bulk.inc

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

function
locale_config_batch_update_components core/modules/locale/locale.bulk.inc

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

function
locale_config_batch_update_config_translations core/modules/locale/locale.bulk.inc

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

function
locale_config_batch_update_default_config_langcodes core/modules/locale/locale.bulk.inc

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

function
locale_cron_fill_queue core/modules/locale/locale.translation.inc

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

function
locale_system_file_system_settings_submit core/modules/locale/locale.module

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

function
locale_translate_batch_build core/modules/locale/locale.bulk.inc

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

function
locale_translate_batch_finished core/modules/locale/locale.bulk.inc

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

function
locale_translate_batch_import core/modules/locale/locale.bulk.inc

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

function
locale_translate_batch_import_save core/modules/locale/locale.bulk.inc

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

function
locale_translate_batch_refresh core/modules/locale/locale.bulk.inc

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

function
locale_translate_delete_translation_files core/modules/locale/locale.bulk.inc

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

function
locale_translate_file_attach_properties core/modules/locale/locale.bulk.inc

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

function
locale_translate_file_create core/modules/locale/locale.bulk.inc

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

function
locale_translate_get_interface_translation_files core/modules/locale/locale.bulk.inc

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

function
locale_translation_batch_fetch_build core/modules/locale/locale.fetch.inc

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

function
locale_translation_batch_fetch_download core/modules/locale/locale.batch.inc

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

function
locale_translation_batch_fetch_finished core/modules/locale/locale.batch.inc

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

function
locale_translation_batch_fetch_import core/modules/locale/locale.batch.inc

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

function
locale_translation_batch_status_build core/modules/locale/locale.compare.inc

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.

function
locale_translation_batch_status_check core/modules/locale/locale.batch.inc

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

function
locale_translation_batch_status_finished core/modules/locale/locale.batch.inc

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

function
locale_translation_batch_update_build core/modules/locale/locale.fetch.inc

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

function
locale_translation_batch_version_check core/modules/locale/locale.batch.inc

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

function
locale_translation_build_projects core/modules/locale/locale.compare.inc

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

function
locale_translation_build_server_pattern core/modules/locale/locale.translation.inc

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

function
locale_translation_build_sources core/modules/locale/locale.translation.inc

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

function
locale_translation_check_projects core/modules/locale/locale.compare.inc

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

function
locale_translation_check_projects_batch core/modules/locale/locale.compare.inc

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

function
locale_translation_check_projects_local core/modules/locale/locale.compare.inc

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

function
locale_translation_clear_cache_projects core/modules/locale/locale.translation.inc

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

function
locale_translation_clear_status core/modules/locale/locale.module

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

function
locale_translation_default_translation_server core/modules/locale/locale.compare.inc

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

function
locale_translation_download_source core/modules/locale/locale.batch.inc

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

function
locale_translation_file_history_delete core/modules/locale/locale.module

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

function
locale_translation_flush_projects core/modules/locale/locale.compare.inc

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

function
locale_translation_get_file_history core/modules/locale/locale.module

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.

function
locale_translation_get_projects core/modules/locale/locale.translation.inc

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.

function

Other projects


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