Deprecated - 10.3.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
Database::RETURN_INSERT_ID core/lib/Drupal/Core/Database/Database.php

in drupal:9.4.0 and is removed from drupal:11.0.0. There is no replacement.

constant 4
Database::RETURN_NULL core/lib/Drupal/Core/Database/Database.php

in drupal:9.4.0 and is removed from drupal:11.0.0. There is no replacement.

constant 1
Database::RETURN_STATEMENT core/lib/Drupal/Core/Database/Database.php

in drupal:9.4.0 and is removed from drupal:11.0.0. There is no replacement.

constant 2
DatabaseDriverList::getFromDriverName core/lib/Drupal/Core/Extension/DatabaseDriverList.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use DatabaseDriverList::get() instead, passing a database driver namespace.

function 1
DateFormatter::country core/lib/Drupal/Core/Datetime/DateFormatter.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There will be a contrib replacement. See https://www.drupal.org/node/3439484

function
Datetime::formatExample core/lib/Drupal/Core/Datetime/Element/Datetime.php

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

function
db_installer_object core/includes/install.inc

in drupal:10.0.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
Delete core/lib/Drupal/Core/Database/Driver/pgsql/Delete.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module.

class 1
DependencySerializationTraitPass core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php

in drupal:9.5.0 and is removed from drupal:11.0.0. The _serviceId property is no longer part of the container. Use \Drupal\Core\DrupalKernelInterface::getServiceIdMapping() instead.

class
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
Diff::check core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
Diff::closing core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1 1
Diff::isEmpty core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
Diff::lcs core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
Diff::orig core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1 1
Diff::reverse core/lib/Drupal/Component/Diff/Diff.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
DiffEngine core/lib/Drupal/Component/Diff/Engine/DiffEngine.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use sebastianbergmann/diff instead.

class 1
DiffOp::nclosing core/lib/Drupal/Component/Diff/Engine/DiffOp.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
DiffOp::norig core/lib/Drupal/Component/Diff/Engine/DiffOp.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
DiffOp::reverse core/lib/Drupal/Component/Diff/Engine/DiffOp.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 4
DiffOpAdd::reverse core/lib/Drupal/Component/Diff/Engine/DiffOpAdd.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
DiffOpChange::reverse core/lib/Drupal/Component/Diff/Engine/DiffOpChange.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
DiffOpCopy::reverse core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function
DiffOpDelete::reverse core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

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

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

function 1
DrupalKernel::generateServiceIdHash core/lib/Drupal/Core/DrupalKernel.php

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

function
DrupalKernel::$serviceIdMapping core/lib/Drupal/Core/DrupalKernel.php

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

property
DrupalKernelInterface::getServiceIdMapping core/lib/Drupal/Core/DrupalKernelInterface.php

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

function 1
drupal_detect_database_types core/includes/install.inc

in drupal:10.2.0 and is removed from drupal:11.0.0. Use DatabaseDriverList::getList() instead.

function 1
drupal_get_database_types core/includes/install.inc

in drupal:10.2.0 and is removed from drupal:11.0.0. Use DatabaseDriverList::getList() instead.

function 1
drupal_rewrite_settings core/includes/install.inc

in drupal:10.1.0 and is removed from drupal:11.0.0. Use SettingsEditor::rewrite() instead. Note $settings_file argument becomes required and the first argument of the method.

function 1
drupal_theme_rebuild core/includes/theme.inc

in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service reset() method instead.

function 1
EditorImageDialog core/modules/editor/src/Form/EditorImageDialog.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class 2
EditorLinkDialog core/modules/editor/src/Form/EditorLinkDialog.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class 1
EditorMediaDialog core/modules/media/src/Form/EditorMediaDialog.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class 2
EntityCacheTagsTestBase::createCacheId core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

function
EntityReferenceTestTrait core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.

trait
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
EntityStorageInterface::deleteRevision core/lib/Drupal/Core/Entity/EntityStorageInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision instead.

function 4
EntityStorageInterface::loadRevision core/lib/Drupal/Core/Entity/EntityStorageInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.

function 4
EntityTranslationRenderTrait::getEntityTranslation core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\views\Entity\Render\EntityTranslationRenderTrait::getEntityTranslationByRelationship instead.

function
EntityTypeManager::setContainer core/lib/Drupal/Core/Entity/EntityTypeManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Instead, you should pass the container as an argument in the __construct() method.

function
EntityViewController::viewRevision core/lib/Drupal/Core/Entity/Controller/EntityViewController.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\Controller\EntityRevisionViewController instead.

function
ExceptionHandler core/lib/Drupal/Core/Database/Driver/mysql/ExceptionHandler.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module.

class 1
Extension::__call core/lib/Drupal/Core/Extension/Extension.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Extension\Extension::getFileInfo() instead.

function
ExternalCommandRequirementsTrait core/tests/Drupal/BuildTests/Framework/ExternalCommandRequirementsTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal\\TestTools\\Extension\\RequiresComposerTrait instead.

trait 1
FetchModeTrait::assocIntoObject core/lib/Drupal/Core/Database/FetchModeTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use supported modes only.

function
FetchModeTrait::assocToBoth core/lib/Drupal/Core/Database/FetchModeTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use supported modes only.

function
FetchModeTrait::assocToClassType core/lib/Drupal/Core/Database/FetchModeTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use supported modes only.

function
FileSystemInterface::EXISTS_ERROR core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Error instead.

constant

Other projects


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