Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
claro_preprocess_block_content_add_list core/themes/claro/claro.theme

in drupal:11.3.0 and is removed from drupal:12.0.0. Use entity_add_list 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
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
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
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
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
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_field_sync_widget core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use Drupal\content_translation\FieldSyncWidget::widget() 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
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
dblog_filters core/modules/dblog/dblog.module

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

function
DefaultHtmlRouteProvider::getEntityTypeIdKeyType core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php

in drupal:11.4.0 and is removed from drupal:13.0.0. To determine if an entity type has an integer ID key, use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId().

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
DrupalKernel::getModuleFileNames core/lib/Drupal/Core/DrupalKernel.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionFileNames() instead.

function
DrupalKernel::getModuleNamespacesPsr4 core/lib/Drupal/Core/DrupalKernel.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionNamespacesPsr4() instead.

function
DrupalKernel::getModulesParameter core/lib/Drupal/Core/DrupalKernel.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use getExtensionsParameter() instead.

function
DrupalSqlBase core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php

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

class
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_DISABLED core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
DRUPAL_OPTIONAL core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
DRUPAL_REQUIRED core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
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
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
EmptySource core/modules/migrate_drupal/src/Plugin/migrate/source/EmptySource.php

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

class
EntityBlock::import core/modules/block/src/Plugin/migrate/destination/EntityBlock.php

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

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
EntityContentComplete core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php

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

class
EntityNodeType::import core/modules/node/src/Plugin/migrate/destination/EntityNodeType.php

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

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
EntityReferenceEntityFormatter::$recursiveRenderDepth core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php

in drupal:11.4.0 and is removed from drupal:13.0.0. EntityViewBuilder #pre_render and #post_render callbacks prevent recursion.

property
EntityReferenceEntityFormatter::RECURSIVE_RENDER_LIMIT core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php

in drupal:11.4.0 and is removed from drupal:13.0.0. EntityViewBuilder #pre_render and #post_render callbacks prevent recursion.

constant
EntitySearchPage::import core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php

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

function
EntityShortcutSet core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php

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

class
EntityUserRole core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php

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

class
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
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
ExpectDeprecationTrait core/tests/Drupal/TestTools/Extension/DeprecationBridge/ExpectDeprecationTrait.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->expectUserDeprecationMessage() or $this->expectUserDeprecationMessageMatches() instead.

trait
ExpectDeprecationTrait::expectDeprecation core/tests/Drupal/TestTools/Extension/DeprecationBridge/ExpectDeprecationTrait.php

in drupal:11.4.0 and is removed from drupal:12.0.0. Use $this->expectUserDeprecationMessage() or $this->expectUserDeprecationMessageMatches() instead.

function
ExtensionDiscovery::$fileCache core/lib/Drupal/Core/Extension/ExtensionDiscovery.php

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

property
ExtensionMimeTypeGuesser::$defaultMapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a MimeTypeMapInterface $map to the constructor instead.

property

Other projects


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