Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
TranslationWrapper core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php

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

class
TwigExtension::setDateFormatter core/lib/Drupal/Core/Template/TwigExtension.php

in drupal:8.3.0 and is removed from drupal:9.0.0.

function
TwigExtension::setGenerators core/lib/Drupal/Core/Template/TwigExtension.php

in drupal:8.0.0 and is removed from drupal:9.0.0.

function
TwigExtension::setThemeManager core/lib/Drupal/Core/Template/TwigExtension.php

in drupal:8.3.0 and is removed from drupal:9.0.0.

function
TwigExtension::setUrlGenerator core/lib/Drupal/Core/Template/TwigExtension.php

in drupal:8.3.0 and is removed from drupal:9.0.0.

function 1
twig_without core/themes/engines/twig/twig.engine

in Drupal 8.7.x and will be removed before 9.0.0. Use \Drupal\Core\Template\TwigExtension::withoutFilter() instead.

function 1
TypeLinkManager core/modules/rest/src/LinkManager/TypeLinkManager.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC.

class 1
TypeLinkManagerInterface core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php

in drupal:8.3.0 and is removed from drupal:9.0.0. This has been moved to the hal module. This exists solely for BC.

interface 1
UITestBase core/modules/views_ui/src/Tests/UITestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views_ui\Functional\UITestBase.

class
Unicode::caseFlip core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.8.0 and is removed from drupal:9.0.0. There is no direct replacement.

function
Unicode::setStatus core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. In Drupal 9 there will be no way to set the status and in Drupal 8 this ability has been removed because mb_*() functions are supplied using Symfony's polyfill.

function 1
Unicode::strlen core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strlen() instead.

function 1
Unicode::strpos core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strpos() instead.

function 1
Unicode::strtolower core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strtolower() instead.

function 1
Unicode::strtoupper core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strtoupper() instead.

function 1
Unicode::substr core/lib/Drupal/Component/Utility/Unicode.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_substr() instead.

function 1
unicode_requirements core/includes/unicode.inc

in drupal:8.4.0 and is removed from drupal:9.0.0.

function
UnitTestCase::getBlockMockWithMachineName core/tests/Drupal/Tests/UnitTestCase.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Unit test base classes should not have dependencies on extensions. Set up mocks in individual tests.

function 1 1
UnpublishComment core/modules/comment/src/Plugin/Action/UnpublishComment.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Action\Plugin\Action\UnpublishAction instead.

class
UnpublishNode core/modules/node/src/Plugin/Action/UnpublishNode.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Action\Plugin\Action\UnpublishAction instead.

class
UpdatePathTestBase core/modules/system/src/Tests/Update/UpdatePathTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalTests\Update\UpdatePathTestBase.

class
UpdateTestBase core/modules/update/src/Tests/UpdateTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\update\Functional\UpdateTestBase instead.

class
UPDATE_CURRENT core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateManagerInterface::CURRENT instead.

constant
UPDATE_FETCH_PENDING core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateFetcherInterface::FETCH_PENDING instead.

constant
update_fix_compatibility core/includes/update.inc

in Drupal 8.8.5 and is removed from Drupal 9.0.0.

function 1
UPDATE_NOT_CHECKED core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateFetcherInterface::NOT_CHECKED instead.

constant
UPDATE_NOT_CURRENT core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateManagerInterface::NOT_CURRENT instead.

constant
UPDATE_NOT_FETCHED core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateFetcherInterface::NOT_FETCHED instead.

constant
UPDATE_NOT_SECURE core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateManagerInterface::NOT_SECURE instead.

constant
UPDATE_NOT_SUPPORTED core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateManagerInterface::NOT_SUPPORTED instead.

constant
UPDATE_REVOKED core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateManagerInterface::REVOKED instead.

constant
UPDATE_UNKNOWN core/modules/update/update.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\update\UpdateFetcherInterface::UNKNOWN instead.

constant
UrlAlias core/modules/path/src/Plugin/migrate/destination/UrlAlias.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use the entity:path_alias destination instead.

class 1
UrlGeneratorTrait core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Url instead.

trait 5
UrlGeneratorTrait::getUrlGenerator core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the url_generator service instead.

function
UrlGeneratorTrait::redirect core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use new RedirectResponse(Url::fromRoute()) instead.

function 3
UrlGeneratorTrait::setUrlGenerator core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0.

function
UrlGeneratorTrait::url core/lib/Drupal/Core/Routing/UrlGeneratorTrait.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Url::fromUri() instead.

function
UserCreationTrait core/modules/simpletest/src/UserCreationTrait.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use Drupal\Tests\user\Traits\UserCreationTrait instead.

trait
USERNAME_MAX_LENGTH core/modules/user/user.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::USERNAME_MAX_LENGTH instead.

constant
UserResetEmailTestTrait core/modules/user/src/Tests/UserResetEmailTestTrait.php

in drupal:8.?.? and is removed from drupal:9.0.0. Add the method to the test class instead.

trait
UserResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/User/UserResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\user\Functional\Rest\UserResourceTestBase instead.

class
user_delete core/modules/user/user.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use the user entity's delete method to delete the user.

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

in drupal:8.8.0 and is removed from drupal:9.0.0. Use the entity storage system to delete the users.

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Use $account->label() or $account->getDisplayName() instead

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\user\Entity\User::load().

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\user\Entity\User::loadMultiple().

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

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.

constant
USER_REGISTER_VISITORS core/modules/user/user.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS instead.

constant
USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL core/modules/user/user.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL instead.

constant

Other projects


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