Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
pager_default_initialize core/includes/pager.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Pager\PagerManagerInterface->defaultInitialize() instead.

function 1
pager_find_page core/includes/pager.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Pager\PagerParametersInterface->findPage() instead.

function 1
pager_get_query_parameters core/includes/pager.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Pager\PagerParametersInterface->getQueryParameters() instead.

function 1
pager_query_add_page core/includes/pager.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Pager\PagerManagerInterface::getUpdatedParameters() instead.

function 1
Path core/modules/node/src/Plugin/views/field/Path.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use @ViewsField("entity_link") with 'output_url_as_text' set.

class
PathProcessorAlias core/lib/Drupal/Core/PathProcessor/PathProcessorAlias.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\path_alias\PathProcessor\AliasPathProcessor.

class 1 3
PathSubscriber core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\path_alias\EventSubscriber\PathAliasSubscriber instead.

class 1 3
PathTestBase core/modules/path/src/Tests/PathTestBase.php

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

class
PhpunitCompatibilityTrait::getMock core/tests/Drupal/Tests/PhpunitCompatibilityTrait.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.

function 1
PhpunitCompatibilityTrait::setExpectedException core/tests/Drupal/Tests/PhpunitCompatibilityTrait.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Backward compatibility for PHPUnit 4 will no longer be supported.

function 1
PlaceBlockPageVariant core/modules/block_place/src/Plugin/DisplayVariant/PlaceBlockPageVariant.php

in drupal:8.8.0 and is removed from drupal:9.0.0. See the change record for a list of alternatives.

class
PluginInterface core/modules/views/src/Plugin/views/PluginInterface.php

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

interface
PluginKernelTestBase core/modules/views/src/Tests/Plugin/PluginKernelTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Kernel\ViewsKernelTestBase instead.

class
PluginTestBase core/modules/views/src/Tests/Plugin/PluginTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Functional\ViewTestBase.

class
PluralTranslatableMarkup::DELIMITER core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Component\Gettext\PoItem::DELIMITER instead.

constant
PrivateTempStore core/modules/user/src/PrivateTempStore.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead.

class 1
PrivateTempStoreFactory core/modules/user/src/PrivateTempStoreFactory.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\PrivateTempStoreFactory instead.

class
PublishComment core/modules/comment/src/Plugin/Action/PublishComment.php

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

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

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

class
QueryFactory core/lib/Drupal/Core/Entity/Query/QueryFactory.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead.

class
RandomGeneratorTrait core/modules/simpletest/src/RandomGeneratorTrait.php

in drupal:8.1.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\RandomGeneratorTrait instead.

trait
RawParameterValueResolver core/lib/Drupal/Core/Controller/ArgumentResolver/RawParameterValueResolver.php

in Drupal 8.8.1 and will be removed before Drupal 9.0.0. There is no replacement.

class 1
RdfMappingResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/RdfMapping/RdfMappingResourceTestBase.php

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

class
RelationLinkManager core/modules/rest/src/LinkManager/RelationLinkManager.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
RelationLinkManagerInterface core/modules/rest/src/LinkManager/RelationLinkManagerInterface.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
RequestHandler::getLegacyParameters core/modules/rest/src/RequestHandler.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use the argument resolver method instead, see ::createArgumentResolver().

function 1
REQUEST_TIME core/includes/bootstrap.inc

in drupal:8.3.0 and is removed from drupal:10.0.0. Use \Drupal::time()->getRequestTime();

constant 153
ResourcePluginManager::getInstance core/modules/rest/src/Plugin/Type/ResourcePluginManager.php

in Drupal 8.2.0. Use Drupal\rest\Plugin\Type\ResourcePluginManager::createInstance() instead.

function
ResourceType::updateDeprecatedFieldMapping core/modules/jsonapi/src/ResourceType/ResourceType.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use self::getFields() instead.

function 1
ResourceTypeRepository::getFieldMapping core/modules/jsonapi/src/ResourceType/ResourceTypeRepository.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use self::getFields() instead.

function
ResponsiveImageStyleResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ResponsiveImageStyle/ResponsiveImageStyleResourceTestBase.php

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

class
responsive_image_build_source_attributes core/modules/responsive_image/responsive_image.module

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

function
RESPONSIVE_IMAGE_EMPTY_IMAGE core/modules/responsive_image/responsive_image.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\responsive_image\ResponsiveImageStyleInterface::EMPTY_IMAGE instead.

constant
RESPONSIVE_IMAGE_ORIGINAL_IMAGE core/modules/responsive_image/responsive_image.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\responsive_image\ResponsiveImageStyleInterface::ORIGINAL_IMAGE instead.

constant
RestExport::$authenticationProviders core/modules/rest/src/Plugin/views/display/RestExport.php

in drupal:8.4.0 and is removed from drupal:9.0.0. see https://www.drupal.org/node/2825204.

property
RestResourceConfigResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/RestResourceConfig/RestResourceConfigResourceTestBase.php

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

class
RESTTestBase core/modules/rest/src/Tests/RESTTestBase.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\rest\Functional\ResourceTestBase and \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase instead. Only retained for contributed module tests that may be using this base class.

class
RoleResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Role/RoleResourceTestBase.php

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

class
RouteEnhancerInterface core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Instead, you should use \Drupal\Core\Routing\EnhancerInterface. See https://www.drupal.org/node/2894934 Part of the deprecation means that applies() is now called on runtime instead of compile time.

interface 1
RouteFilterInterface core/lib/Drupal/Core/Routing/RouteFilterInterface.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Instead, you should use \Drupal\Core\Routing\FilterInterface. See https://www.drupal.org/node/2894934

interface
RouteProvider core/modules/simpletest/src/RouteProvider.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\KernelTests\RouteProvider instead.

class
SafeMarkup core/lib/Drupal/Component/Utility/SafeMarkup.php

Will be removed before Drupal 9.0.0. Use the appropriate @link sanitization sanitization functions @endlink or the @link theme_render theme and render systems @endlink so that the output can can be themed, escaped, and altered properly.

class 1
SafeMarkup::checkPlain core/lib/Drupal/Component/Utility/SafeMarkup.php

Will be removed before Drupal 9.0.0. Rely on Twig's auto-escaping feature, or use the @link theme_render #plain_text @endlink key when constructing a render array that contains plain text in order to use the renderer's auto-escaping feature. If neither of these are possible, \Drupal\Component\Utility\Html::escape() can be used in places where explicit escaping is needed.

function 1
SafeMarkup::format core/lib/Drupal/Component/Utility/SafeMarkup.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Render\FormattableMarkup.

function 1
SafeMarkup::isSafe core/lib/Drupal/Component/Utility/SafeMarkup.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, you should just check if a variable is an instance of \Drupal\Component\Render\MarkupInterface.

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

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

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

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

class
Schema::fieldSetDefault core/lib/Drupal/Core/Database/Schema.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Instead, call ::changeField() passing a full field specification.

function 3
Schema::fieldSetNoDefault core/lib/Drupal/Core/Database/Schema.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Instead, call ::changeField() passing a full field specification.

function 3
SchemaCheckTestTrait core/modules/config/src/Tests/SchemaCheckTestTrait.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\SchemaCheckTestTrait instead.

trait

Other projects


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