Deprecated - main - drupal

Primary tabs

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

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_PUBLISHED instead.

constant
LanguageDomains core/modules/language/src/Plugin/migrate/process/LanguageDomains.php

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

class 1
LanguageNegotiation core/modules/language/src/Plugin/migrate/process/LanguageNegotiation.php

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

class 1
LanguageTypes core/modules/language/src/Plugin/migrate/process/LanguageTypes.php

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

class 1
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 1
LibraryDiscoveryCollector::clearCachedDefinitions core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector::clear() instead.

function
LibraryDiscoveryInterface::clearCachedDefinitions core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector::clear() instead.

function 2
LinkWidget::validateTitleElement core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Instead, validation is performed by the LinkTitleRequiredConstraint on the LinkItem field type.

function
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
locale_config_batch_refresh_name core/modules/locale/locale.bulk.inc

in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_config_translations($names, $langcodes, $context) instead.

function 1
locale_config_batch_set_config_langcodes core/modules/locale/locale.bulk.inc

in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes(&$context) instead.

function 1
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_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) ->buildSources($projects, $langcodes) 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('locale.project')->resetCache() instead.

function
LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN core/modules/locale/locale.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::TRANSLATION_DEFAULT_SERVER_PATTERN instead.

constant
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('locale.project')->getProjects($project_names) 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_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 1
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 1
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 1
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
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
MimeTypeMap::getMapping core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement for this method.

function
MimeTypeMap::setMapping core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement for this method.

function
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
ModuleInstallerInterface::addUninstallValidator core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Inject the uninstall validators into the constructor instead.

function 1
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
NodePreviewController::title core/modules/node/src/Controller/NodePreviewController.php

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

function
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::updateType core/modules/node/src/NodeStorageInterface.php

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

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
node_access_view_all_nodes core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal::entityTypeManager()->getAccessControlHandler('node')->checkAllGrants() instead.

function 1
node_add_body_field core/modules/node/node.module

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

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
node_mass_update core/modules/node/node.admin.inc

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\node\NodeBulkUpdate::class)->process() instead.

function
node_reindex_node_search core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal::service('search.index')->markForReindex('node_search', $nid) instead.

function
node_title_list core/modules/node/node.module

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

function
node_type_get_description core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use $node_type->getDescription() instead.

function
node_type_get_names core/modules/node/node.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal::service('entity_type.bundle.info')->getBundleLabels('node') instead.

function
OverridesSectionStorage::hasIntegerId core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId() instead.

function
PathSetTranslated core/modules/path/src/Plugin/migrate/process/PathSetTranslated.php

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

class 1
PerformanceData::getCacheTagChecksumCount core/tests/Drupal/Tests/PerformanceData.php

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

function

Other projects


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