Deprecated - 10.3.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
Tasks core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.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
Tasks core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.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
TemporaryJsonapiFileFieldUploader core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

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

class 1
TemporaryJsonapiFileFieldUploader::BYTES_TO_READ core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ instead.

constant
TemporaryJsonapiFileFieldUploader::getUploadLocation core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\FileUploadLocationTrait::getUploadLocation() instead.

function
TemporaryJsonapiFileFieldUploader::REQUEST_HEADER_FILENAME_REGEX core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX instead.

constant
TemporaryJsonapiFileFieldUploader::validateAndParseContentDispositionHeader core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\ContentDispositionFilenameParser::parseFilename() instead.

function
TermStorageInterface::deleteTermHierarchy core/modules/taxonomy/src/TermStorageInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Parent references are automatically cleared when deleting a taxonomy term.

function 1
TermStorageInterface::updateTermHierarchy core/modules/taxonomy/src/TermStorageInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Parent references are automatically updated when updating a taxonomy term.

function 1
TestRequirementsTrait::checkModuleRequirements core/tests/Drupal/Tests/TestRequirementsTrait.php

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

function 1
TestRequirementsTrait::checkRequirements core/tests/Drupal/Tests/TestRequirementsTrait.php

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

function 4
TestSetupTrait::getDatabaseConnection core/lib/Drupal/Core/Test/TestSetupTrait.php

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

function 1
TestSuiteBase core/tests/TestSuites/TestSuiteBase.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 6 1
ThemeExtensionList::getBaseThemes core/lib/Drupal/Core/Extension/ThemeExtensionList.php

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

function
ThemeHandlerInterface::getBaseThemes core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

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

function
ThemeHandlerInterface::rebuildThemeData core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal::service('extension.list.theme')->reset()->getList() instead.

function
theme_get_registry core/includes/theme.inc

in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service methods get() or getRuntime() instead.

function 1
theme_render_and_autoescape core/includes/theme.inc

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. Theme engines must handle escaping by themselves.

function 4
TourTipPluginInterface core/modules/tour/src/TourTipPluginInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Implements TipPluginInterface instead.

interface 1
Transaction::$rolledBack core/lib/Drupal/Core/Database/Transaction.php

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

property
TranslationWrapper core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php

in drupal:8.0.0 and is removed from drupal:11.0.0. Use the \Drupal\Core\StringTranslation\TranslatableMarkup class instead.

class 1
Truncate core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.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
Truncate core/lib/Drupal/Core/Database/Driver/pgsql/Truncate.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
TrustedCallbackInterface::TRIGGER_WARNING core/lib/Drupal/Core/Security/TrustedCallbackInterface.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use TrustedCallbackInterface::THROW_EXCEPTION or TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION instead.

constant 2
TypedConfigManager::replaceName core/lib/Drupal/Core/Config/TypedConfigManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveDynamicTypeName::resolveDynamicTypeName() instead.

function
TypedConfigManager::replaceVariable core/lib/Drupal/Core/Config/TypedConfigManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveDynamicTypeName::resolveExpression() instead.

function
TypedConfigManager::resolveDynamicTypeName core/lib/Drupal/Core/Config/TypedConfigManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveDynamicTypeName() instead.

function
TypedConfigManager::resolveExpression core/lib/Drupal/Core/Config/TypedConfigManager.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveExpression() instead.

function
UnitTestSuite core/tests/TestSuites/UnitTestSuite.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
UnpublishByKeywordComment core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php

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

class 1
UnpublishByKeywordNode core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php

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

class 1
Update core/lib/Drupal/Core/Database/Driver/pgsql/Update.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
UpdateController::updateRedirect core/modules/update/src/Controller/UpdateController.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use /admin/appearance/update directly instead of /admin/theme/update.

function
UpdateHookRegistryFactory core/lib/Drupal/Core/Update/UpdateHookRegistryFactory.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateHookRegistry instead.

class
UpdateRegistryFactory core/lib/Drupal/Core/Update/UpdateRegistryFactory.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateRegistry instead.

class
UploadedFileInterface::getError core/modules/file/src/Upload/UploadedFileInterface.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Validation\UploadedFileValidatorInterface::validate() instead.

function 2
UploadedFileInterface::getErrorMessage core/modules/file/src/Upload/UploadedFileInterface.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Validation\UploadedFileValidatorInterface::validate() instead.

function 2
UploadedFileInterface::isValid core/modules/file/src/Upload/UploadedFileInterface.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Validation\UploadedFileValidatorInterface::validate() instead.

function 2
Upsert core/lib/Drupal/Core/Database/Driver/sqlite/Upsert.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
Upsert core/lib/Drupal/Core/Database/Driver/mysql/Upsert.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
Upsert core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.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
Url::renderAccess core/lib/Drupal/Core/Url.php

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

function
Url::toRenderArray core/lib/Drupal/Core/Url.php

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

function
UrlGenerator::getRouteDebugMessage core/lib/Drupal/Core/Routing/UrlGenerator.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use the route name instead.

function
UrlGenerator::supports core/lib/Drupal/Core/Routing/UrlGenerator.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Only string route names are supported.

function
UserAuthenticationController::userIsBlocked core/modules/user/src/Controller/UserAuthenticationController.php

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

function
UserLoginForm::validateName core/modules/user/src/Form/UserLoginForm.php

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

function
user_is_blocked core/modules/user/user.module

in drupal:11.0.0 and is removed from drupal:12.0.0. Use Drupal\user\UserInterface::isBlocked() instead.

function 2
user_roles core/modules/user/user.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\user\Entity\Role::loadMultiple() and, if necessary, an inline implementation instead.

function 1
user_role_names core/modules/user/user.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\user\Entity\Role::loadMultiple() and, if necessary, an inline implementation instead.

function

Other projects


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