Deprecated - 10.3.x - drupal

Examples: "before Drupal 9", "in Drupal 8.4"
Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
Ajax core/lib/Drupal/Core/Render/Element/Ajax.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Return an \Drupal\Core\Ajax\AjaxResponse instead.

class
AliasManager::getRequestTime core/modules/path_alias/src/AliasManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use the $this->time->getRequestTime() service instead.

function
AssertBlockAppearsTrait::findBlockInstance core/modules/block/tests/src/Functional/AssertBlockAppearsTrait.php

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

function
AssetCollectionOptimizerInterface::getAll core/lib/Drupal/Core/Asset/AssetCollectionOptimizerInterface.php

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

function 4
AssignOwnerNode core/modules/node/src/Plugin/Action/AssignOwnerNode.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\action\Plugin\Action\AssignOwnerNode instead.

class 1
BlockContentController::blockContentTypeRedirect core/modules/block_content/src/Controller/BlockContentController.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use /admin/structure/block-content directly instead of /admin/structure/block/block-content/types.

function
BlockContentController::blockLibraryRedirect core/modules/block_content/src/Controller/BlockContentController.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use /admin/content/block directly instead of /admin/structure/block/block-content.

function
BlockContentController::editRedirect core/modules/block_content/src/Controller/BlockContentController.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use /admin/content/block/{block_content} directly instead of /block/{block_content}.

function
BookTestTrait::generateOutlinePattern core/modules/book/tests/src/Functional/BookTestTrait.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use methods from \Drupal\Tests\WebAssert instead.

function
BrowserMissingDependentModuleMethodTest core/tests/fixtures/BrowserMissingDependentModuleMethodTest.php

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

class 1
BrowserMissingDependentModuleTest core/tests/fixtures/BrowserMissingDependentModuleTest.php

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

class 1
BuildTestSuite core/tests/TestSuites/BuildTestSuite.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10.

class
Cache::keyFromQuery core/lib/Drupal/Core/Cache/Cache.php

in drupal:10.1.0 and is removed from drupal:11.0.0. No replacement provided.

function 1
CacheDecoratorInterface core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

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

interface
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
CKEditor5ImageController::DEFAULT_IMAGE_EXTENSIONS core/modules/ckeditor5/src/Controller/CKEditor5ImageController.php

in drupal:10.3.0 and is removed from drupal:11.0.0 without replacement.

constant
ClassResolver::setContainer core/lib/Drupal/Core/DependencyInjection/ClassResolver.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
ConfigEvents::COLLECTION_INFO core/lib/Drupal/Core/Config/ConfigEvents.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\ConfigCollectionEvents::COLLECTION_INFO instead.

constant
Connection core/modules/system/tests/modules/database_statement_monitoring_test/src/sqlite/Connection.php

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

class
Connection core/modules/system/tests/modules/database_statement_monitoring_test/src/mysql/Connection.php

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

class
Connection core/modules/system/tests/modules/database_statement_monitoring_test/src/pgsql/Connection.php

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

class
Connection core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php

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

class 1
Connection core/lib/Drupal/Core/Database/Driver/mysql/Connection.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
Connection core/lib/Drupal/Core/Database/Driver/pgsql/Connection.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
Connection::addRootTransactionEndCallback core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use TransactionManagerInterface::addPostTransactionCallback() instead.

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

in drupal:10.2.0 and is removed from drupal:11.0.0. Do not commit the connection, void the Transaction objects instead.

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

in drupal:10.2.0 and is removed from drupal:11.0.0. Use TransactionManagerInterface methods instead.

function 1
Connection::getUnprefixedTablesMap core/lib/Drupal/Core/Database/Connection.php

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

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

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

function
Connection::$needsCleanup core/modules/mysql/src/Driver/Database/mysql/Connection.php

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

property
Connection::nextId core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Modules should use instead the keyvalue storage for the last used id.

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

in drupal:10.2.0 and is removed from drupal:11.0.0. Use TransactionManagerInterface methods instead.

function 3
Connection::popTransaction core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use TransactionManagerInterface methods instead.

function
Connection::$prefixes core/lib/Drupal/Core/Database/Connection.php

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

property
Connection::$prefixReplace core/lib/Drupal/Core/Database/Connection.php

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

property
Connection::$prefixSearch core/lib/Drupal/Core/Database/Connection.php

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

property
Connection::pushTransaction core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use TransactionManagerInterface methods instead.

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

in drupal:10.2.0 and is removed from drupal:11.0.0. Do not rollback the connection, roll back the Transaction objects instead.

function
Connection::$rootTransactionEndCallbacks core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. The transaction end callbacks are now managed by TransactionManager.

property
Connection::tablePrefix core/lib/Drupal/Core/Database/Connection.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Instead, you should just use Connection::getPrefix().

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

in drupal:10.2.0 and is removed from drupal:11.0.0. Do not access the transaction stack depth, it is an implementation detail.

function 1
Connection::$transactionLayers core/lib/Drupal/Core/Database/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. The transaction stack is now managed by TransactionManager.

property
Connection::$unprefixedTablesMap core/lib/Drupal/Core/Database/Connection.php

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

property
Connection::$willRollback core/modules/sqlite/src/Driver/Database/sqlite/Connection.php

in drupal:10.2.0 and is removed from drupal:11.0.0. It is unused.

property
ContainerInterface::generateServiceIdHash core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php

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

function
ContainerInterface::getServiceIdMappings core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php

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

function
ContextProvidersPass core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php

in drupal:10.2.0 and is removed from drupal:11.0.0. The context.repository service uses the service_id_collector pattern instead so this is no longer needed.

class
CssCollectionOptimizer core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Core\Asset\CssCollectionOptimizerLazy.

class 1
Database::findDriverAutoloadDirectory core/lib/Drupal/Core/Database/Database.php

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

function 2
Database::RETURN_AFFECTED 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 10

Other projects


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