Deprecated - main - drupal

Primary tabs

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

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

function
AliasManager::writeCache core/modules/path_alias/src/AliasManager.php

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

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
Archiver core/lib/Drupal/Core/Archiver/Attribute/Archiver.php

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

class 3
Archiver core/lib/Drupal/Core/Archiver/Annotation/Archiver.php

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

class
ArchiverException core/lib/Drupal/Core/Archiver/ArchiverException.php

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

class
ArchiverInterface core/lib/Drupal/Core/Archiver/ArchiverInterface.php

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

interface 2
ArchiverManager core/lib/Drupal/Core/Archiver/ArchiverManager.php

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

class
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
automated_cron_settings_submit core/modules/automated_cron/automated_cron.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use AutomatedCronHooks::automatedCronSettingsSubmit() instead.

function
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
block-content-add-list.html.twig core/themes/stable9/templates/admin/block-content-add-list.html.twig

in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list instead.

file
block-content-add-list.html.twig core/themes/claro/templates/block-content-add-list.html.twig

in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list instead.

file
block-content-add-list.html.twig core/modules/block_content/templates/block-content-add-list.html.twig

in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list instead.

file
BlockPluginId core/modules/block/src/Plugin/migrate/process/BlockPluginId.php

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

class
BlockRegion core/modules/block/src/Plugin/migrate/process/BlockRegion.php

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

class 1
BlockSettings core/modules/block/src/Plugin/migrate/process/BlockSettings.php

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

class 1
BlockTheme core/modules/block/src/Plugin/migrate/process/BlockTheme.php

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

class
BlockVisibility core/modules/block/src/Plugin/migrate/process/BlockVisibility.php

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

class 1
block_content_add_body_field core/modules/block_content/block_content.module

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

function
block_theme_initialize core/modules/block/block.module

in drupal:11.4.0 and is removed from drupal:13.0.0. No replacement is provided.

function
CachePluginBase::cacheExpire core/modules/views/src/Plugin/views/cache/CachePluginBase.php

in drupal:11.4.0 and is removed from drupal:13.0.0. No replacement is provided.

function 2
CachePluginBase::getRowCacheKeys core/modules/views/src/Plugin/views/cache/CachePluginBase.php

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

function
CachePluginBase::getRowId core/modules/views/src/Plugin/views/cache/CachePluginBase.php

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

function 1
ChildWithDeprecatedMethod::testMethod core/tests/Drupal/Tests/TestTools/ErrorHandler/DrupalDebugClassLoaderTest.php

in drupal:11.0.0 and is removed from drupal:12.0.0. Use something else instead.

function
ckeditor5_filter_format_edit_form_submit core/modules/ckeditor5/ckeditor5.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\ckeditor5\Hook\Ckeditor5Hooks::filterFormatEditFormSubmit() instead.

function
CommentInterface::ANONYMOUS_MAYNOT_CONTACT core/modules/comment/src/CommentInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\AnonymousContact::Forbidden instead.

constant
CommentInterface::ANONYMOUS_MAY_CONTACT core/modules/comment/src/CommentInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\AnonymousContact::Allowed instead.

constant
CommentInterface::ANONYMOUS_MUST_CONTACT core/modules/comment/src/CommentInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\AnonymousContact::Required instead.

constant
CommentItemInterface::CLOSED core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\CommentingStatus::Closed instead.

constant 1
CommentItemInterface::HIDDEN core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\CommentingStatus::Hidden instead.

constant
CommentItemInterface::OPEN core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\comment\CommentingStatus::Open instead.

constant 1
CommentLazyBuilders::access core/modules/comment/src/CommentLazyBuilders.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the access() method of the content_translation.manager service instead.

function
CommentTypeForm::entityTypeSupportsComments core/modules/comment/src/CommentTypeForm.php

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

function
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 1
ConfigEntityBase::$trustedData core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php

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

property
ConfigEntityInterface::trustData core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php

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

function 2
contact_form_user_admin_settings_submit core/modules/contact/contact.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contact\Hook\ContactFormHooks::userAdminSettingsSubmit instead.

function
contact_user_profile_form_submit core/modules/contact/contact.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contact\Hook\ContactFormHooks::profileFormSubmit() instead.

function
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
ContentTranslationEnabledSetting core/modules/language/src/Plugin/migrate/process/ContentTranslationEnabledSetting.php

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

class
content_translation_enable_widget core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use ContentTranslationEnableTranslationPerBundle::getWidget() instead.

function
content_translation_language_configuration_element_process core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use ContentTranslationEnableTranslationPerBundle::configElementProcess() instead.

function
content_translation_language_configuration_element_submit core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use ContentTranslationEnableTranslationPerBundle::configElementSubmit() instead.

function
content_translation_language_configuration_element_validate core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use ContentTranslationEnableTranslationPerBundle::configElementValidate() instead.

function
content_translation_translate_access core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the access() method of the content_translation.manager service instead.

function
ConvertTokens core/modules/user/src/Plugin/migrate/process/ConvertTokens.php

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

class 1

Other projects


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