Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
AliasManager::pathAliasWhitelistRebuild core/modules/path_alias/src/AliasManager.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasManager::pathAliasPrefixListRebuild instead.

cspell:ignore whitelist

function
AliasWhitelist core/modules/path_alias/src/AliasWhitelist.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixList instead.

class
AliasWhitelistInterface core/modules/path_alias/src/AliasWhitelistInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixListInterface instead.

interface
AssertContentTrait::assertFieldById core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertFieldChecked core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoDuplicateIds core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoField core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoFieldById core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoFieldByName core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoFieldByXPath core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function 3
AssertContentTrait::assertNoFieldChecked core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoLinkByHref core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoLinkByHrefInMainRegion core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoOption core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoOptionSelected core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertNoUniqueText core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertOptionByText core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertOptionSelected core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertOptionSelectedWithDrupalSelector core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertTextPattern core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertUniqueText core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function
AssertContentTrait::assertUniqueTextHelper core/tests/Drupal/KernelTests/AssertContentTrait.php

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

function 2
authorize-report.html.twig core/themes/stable9/templates/admin/authorize-report.html.twig

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

file
authorize-report.html.twig core/modules/system/templates/authorize-report.html.twig

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

file
BcRoute core/lib/Drupal/Core/Routing/BcRoute.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use route aliases instead.

class
BrowserTestBase::getOptions core/tests/Drupal/Tests/BrowserTestBase.php

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

function
CacheBackendInterface::invalidateAll core/lib/Drupal/Core/Cache/CacheBackendInterface.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use CacheBackendInterface::deleteAll() or cache tag invalidation instead.

function 8
CachedDiscoveryClearer::addCachedDiscovery core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Pass the full set of services to the constructor instead.

function
CachedDiscoveryClearer::$legacyCachedDiscoveries core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Pass the full set of services to the constructor instead.

property
CategorizingPluginManagerTrait::getModuleHandler core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php

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

function
ChmodInterface core/lib/Drupal/Core/FileTransfer/ChmodInterface.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

interface 3
Condition core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php

in drupal:11.2.0 and is removed from drupal:12.0.0. The PostgreSQL override of the entity query has been moved to the pgsql module.

class
Config core/modules/migrate_drupal/src/Plugin/migrate/source/d8/Config.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\migrate\Plugin\migrate\source\ConfigEntity instead.

Available configuration keys:

  • collections: (optional) The collection of configuration storage to retrieve from the source - can be a string or an array. If omitted, configuration objects of all available collections are retrieved.
  • names: (optional) Names of configuration objects to retrieve from the source - can be a string or an array. If omitted, all available configuration objects are retrieved.

Examples:

class
ContentEntity core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\migrate\Plugin\migrate\source\ContentEntity instead.

This plugin uses the Entity API to export entity data. If the source entity type has custom field storage fields or computed fields, this class will need to be extended and the new class will need to load/calculate the values for those fields.

Available configuration keys:

  • entity_type: The entity type ID of the entities being exported. This is calculated dynamically by the deriver so it is only needed if the deriver is not utilized, i.e., a custom source plugin.
  • bundle: (optional) If the entity type is bundleable, only return entities of this bundle.
  • include_translations: (optional) Indicates if the entity translations should be included, defaults to TRUE.
  • add_revision_id: (optional) Indicates if the revision key is added to the source IDs, defaults to TRUE.

Examples:

This will return the default revision for all nodes, from every bundle and every translation. The revision key is added to the source IDs.

class 1
ContentEntityDeriver core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntityDeriver.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\migrate\Plugin\migrate\source\ContentEntityDeriver instead.

class
DateTimeRangeConstantsInterface core/modules/datetime_range/src/DateTimeRangeConstantsInterface.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use enum DateTimeRangeDisplayOptions instead.

interface
datetime_type_field_views_data_helper core/modules/datetime/datetime.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::service('datetime.views_helper') ->buildViewsData($field_storage, $data, $column_name); instead.

function
deprecation_test_function core/modules/system/tests/modules/deprecation_test/deprecation_test.module

in drupal:8.4.0 and is removed from drupal:9.0.0. This is the deprecation message for deprecated_test_function().

function 4
drupal_common_theme core/includes/theme.inc

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Theme\ThemeCommonElements::commonElements() instead,

function
drupal_requirements_severity core/includes/install.inc

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Extension\Requirement\RequirementSeverity::getMaxSeverity() instead.

function 1
editor_load core/modules/editor/editor.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::entityTypeManager()->getStorage('editor')->load($format_id) instead.

function
EntityCacheTagsTestBase::getRenderCacheBackend core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use ::getRenderVariationCache() instead, which is inherited from CacheTestTrait.

function
EntityPermissionsForm::access core/modules/user/src/Form/EntityPermissionsForm.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use a permissions check in the route definition instead.

function
EntityPermissionsRouteProviderWithCheck core/modules/user/src/Entity/EntityPermissionsRouteProviderWithCheck.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use EntityPermissionsRouteProvider instead.

class 1
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php

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

constant
EntityViewsData::$fieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

property
EntityViewsData::getFieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

function 1
entity_test_create_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::createBundle() instead.

function
entity_test_delete_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.

function
Error::currentErrorHandler core/lib/Drupal/Core/Utility/Error.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use get_error_handler() instead.

function

Other projects


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