Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
BrowserTestBase::setUpAppRoot core/tests/Drupal/Tests/BrowserTestBase.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Access $this->root directly.

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
CacheCollector::$cacheCreated core/lib/Drupal/Core/Cache/CacheCollector.php

in drupal:11.5.0 and is removed from drupal:12.0.0. If checking whether the cache item was loaded, you can check the loadedData property instead.

property
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
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
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
check_markup core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no direct replacement. It's recommended to always return a renderable array without flattening as markup to pass the cacheability metadata.

function 1
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
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
ClaroHooks::preprocessBlockContentAddList core/themes/claro/src/Hook/ClaroHooks.php

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

function
CommentController::renderNewCommentsNodeLinks core/modules/comment/src/Controller/CommentController.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\history\Controller\HistoryController::renderNewCommentsNodeLinks 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 2
CommentItemInterface::FORM_BELOW 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\FormLocation::Below instead.

constant 1
CommentItemInterface::FORM_SEPARATE_PAGE 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\FormLocation::SeparatePage 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 3
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 5
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
CommentManagerInterface::getCountNewComments core/modules/comment/src/CommentManagerInterface.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\history\HistoryManager::getCountNewComments instead.

function 1
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
comment_preview core/modules/comment/comment.module

in drupal:11.4.0 and is removed from drupal:12.0.0. The logic was moved in \Drupal\comment\CommentForm::preview(), there is no replacement.

function
Composer::preAutoloadDump core/lib/Drupal/Core/Composer/Composer.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\Composer\Plugin\Scaffold\Plugin::preAutoloadDump() instead.

function
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 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
Connection::addSavepoint core/modules/pgsql/src/Driver/Database/pgsql/Connection.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use TransactionManager to start a transaction then call ::commitOrRelease() or ::rollback() on it.

function
Connection::commitAll core/lib/Drupal/Core/Database/Connection.php

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

function
Connection::releaseSavepoint core/modules/pgsql/src/Driver/Database/pgsql/Connection.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use TransactionManager to start a transaction then call ::commitOrRelease() or ::rollback() on it.

function
Connection::rollbackSavepoint core/modules/pgsql/src/Driver/Database/pgsql/Connection.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use TransactionManager to start a transaction then call ::commitOrRelease() or ::rollback() on it.

function
Connection::$savepoints core/modules/pgsql/src/Driver/Database/pgsql/Connection.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use TransactionManager to start a transaction then call ::commitOrRelease() or ::rollback() on it.

property
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_field_sync_widget core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use Drupal\content_translation\FieldSyncWidget::widget() 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
Database::commitAllOnShutdown core/lib/Drupal/Core/Database/Database.php

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

function 1
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

Other projects


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