Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
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 1
locale_translation_get_status core/modules/locale/locale.module

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

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

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

function
locale_translation_load_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) ->loadSources($projects, $langcodes) instead.

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

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

function
locale_translation_source_build 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, $filename) instead.

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

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

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

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

constant
LOCALE_TRANSLATION_SOURCE_COMPARE_GT core/modules/locale/locale.translation.inc

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

constant
LOCALE_TRANSLATION_SOURCE_COMPARE_LT core/modules/locale/locale.translation.inc

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

constant
locale_translation_status_delete_languages core/modules/locale/locale.module

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

function
locale_translation_status_delete_projects core/modules/locale/locale.module

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

function
locale_translation_status_save core/modules/locale/locale.module

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

function
locale_translation_update_file_history core/modules/locale/locale.module

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

function
MatchingRouteNotFoundException core/lib/Drupal/Core/Routing/MatchingRouteNotFoundException.php

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

class
media_filter_format_edit_form_validate core/modules/media/media.module

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

function
MenuSettingsConstraint core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php

in drupal:11.5.0 and is removed from drupal:13.0.0. Menu settings validation is now handled as a form validation callback in \Drupal\menu_ui\Hook\MenuUiHooks::formNodeFormValidate().

class
MenuSettingsConstraintValidator core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraintValidator.php

in drupal:11.5.0 and is removed from drupal:13.0.0. Menu settings validation is now handled as a form validation callback in \Drupal\menu_ui\Hook\MenuUiHooks::formNodeFormValidate().

class
menu_ui_form_node_form_submit core/modules/menu_ui/menu_ui.module

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

function
menu_ui_form_node_type_form_builder core/modules/menu_ui/menu_ui.module

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

function
menu_ui_form_node_type_form_validate core/modules/menu_ui/menu_ui.module

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

function
menu_ui_get_menu_link_defaults core/modules/menu_ui/menu_ui.module

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

function
menu_ui_node_builder core/modules/menu_ui/menu_ui.module

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

function
MigrateEntityComplete core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php

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

class 1
MigrateFieldPluginManager core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php

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

class 1 3
MigrateSkipProcessException core/modules/migrate/src/MigrateSkipProcessException.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Return FALSE from a process plugin's isPipelineStopped() method to stop further processing on a pipeline.

class 1
ModuleHandlerInterface::loadAllIncludes core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

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

function 1
module_config_sort core/includes/module.inc

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

function 1
module_set_weight core/includes/module.inc

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

function
node.admin.inc core/modules/node/node.admin.inc

in drupal:11.3.0 and is removed from drupal:12.0.0. Functions have been deprecated.

file
NodeSearch core/modules/node/src/Plugin/Search/NodeSearch.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Instead, use \Drupal\search_node\Plugin\Search\SearchNode.

class
NodeStorageInterface::countDefaultLanguageRevisions core/modules/node/src/NodeStorageInterface.php

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

function 1
NodeStorageInterface::revisionIds core/modules/node/src/NodeStorageInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use an entity query instead.

function 1
NodeStorageInterface::userRevisionIds core/modules/node/src/NodeStorageInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use an entity query instead.

function 1
NodeUpdate7008 core/modules/node/src/Plugin/migrate/process/d6/NodeUpdate7008.php

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

class
NodeViewController core/modules/node/src/Controller/NodeViewController.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\Controller\EntityViewController instead.

class
node_access_grants core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('Drupal\node\NodeGrantsHelper')->nodeAccessGrants() instead.

function
node_access_needs_rebuild core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('\Drupal\node\NodeAccessRebuild')->setNeedsRebuild() and \Drupal::service('\Drupal\node\NodeAccessRebuild')->needsRebuild() instead.

function
node_access_rebuild core/modules/node/node.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('\Drupal\node\NodeAccessRebuild')->rebuild($batch_mode) instead.

function
node_get_type_label core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use $node->getBundleEntity()->label() instead.

function
node_is_page core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. There is no replacement, check the view mode instead during rendering.

function

Other projects


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