Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
AccessResult::cacheUntilConfigurationChanges core/lib/Drupal/Core/Access/AccessResult.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Access\AccessResult::addCacheableDependency() instead.

function
AccessResult::cacheUntilEntityChanges core/lib/Drupal/Core/Access/AccessResult.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use ::addCacheableDependency() instead.

function
AccountInterface::getUsername core/lib/Drupal/Core/Session/AccountInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Session\AccountInterface::getAccountName() or \Drupal\user\UserInterface::getDisplayName() instead.

function 3
AccountProxy::$initialAccountId core/lib/Drupal/Core/Session/AccountProxy.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use $this->id instead.

property
ActionAddForm core/modules/action/src/ActionAddForm.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\action\Form\ActionEditForm instead.

class
ActionEditForm core/modules/action/src/ActionEditForm.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\action\Form\ActionEditForm instead.

class
ActionFormBase core/modules/action/src/ActionFormBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\action\Form\ActionFormBase instead.

class
ActionResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Action/ActionResourceTestBase.php

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

class
ActiveTheme::$baseThemes core/lib/Drupal/Core/Theme/ActiveTheme.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use $this->baseThemeExtensions instead.

property
ActiveTheme::getBaseThemes core/lib/Drupal/Core/Theme/ActiveTheme.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Theme\ActiveTheme::getBaseThemeExtensions() instead.

function
AggregatorTestBase core/modules/aggregator/src/Tests/AggregatorTestBase.php

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

class
AGGREGATOR_CLEAR_NEVER core/modules/aggregator/aggregator.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\aggregator\FeedStorageInterface::CLEAR_NEVER instead.

constant
AjaxRenderer::drupalRenderRoot core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use $this->renderer->renderRoot() instead.

function
AliasManager core/lib/Drupal/Core/Path/AliasManager.php

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

class 2 5
AliasManagerInterface core/lib/Drupal/Core/Path/AliasManagerInterface.php

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

interface 4 9
AliasRepository core/lib/Drupal/Core/Path/AliasRepository.php

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

class 1 2
AliasRepositoryInterface core/lib/Drupal/Core/Path/AliasRepositoryInterface.php

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

interface 2 1
AliasStorage core/lib/Drupal/Core/Path/AliasStorage.php

\Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the "path_alias" entity type for CRUD methods.

class
AliasStorageInterface core/lib/Drupal/Core/Path/AliasStorageInterface.php

\Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the "path_alias" entity type for CRUD methods.

interface 1
AliasWhitelist core/lib/Drupal/Core/Path/AliasWhitelist.php

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

class 1 3
AliasWhitelistInterface core/lib/Drupal/Core/Path/AliasWhitelistInterface.php

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

interface 2 1
AllowedTagsXssTrait core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php

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

trait 8
Apcu4Backend core/lib/Drupal/Core/Cache/Apcu4Backend.php

in drupal:8.8.0 and is removed from from drupal:9.0.0. Use \Drupal\Core\Cache\ApcuBackend instead.

class
archiver_get_archiver core/includes/common.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, get plugin.manager.archiver service from container and call getInstance() method on it. For example $archiver->getInstance(['filepath' => $file]);

function 1
archiver_get_extensions core/includes/common.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Archiver\ArchiverManager::getExtensions() instead.

function 1
AssertBreadcrumbTrait core/modules/system/src/Tests/Menu/AssertBreadcrumbTrait.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Menu\AssertBreadcrumbTrait instead.

trait
AssertButtonsTrait core/modules/node/src/Tests/AssertButtonsTrait.php

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

trait
AssertConfigEntityImportTrait core/modules/config/src/Tests/AssertConfigEntityImportTrait.php

in drupal:8.4.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\config\Traits\AssertConfigEntityImportTrait.

trait
AssertContentTrait core/modules/simpletest/src/AssertContentTrait.php

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

trait
AssertHelperTrait core/modules/simpletest/src/AssertHelperTrait.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use Drupal\Tests\AssertHelperTrait instead.

trait
AssertMenuActiveTrailTrait core/modules/system/src/Tests/Menu/AssertMenuActiveTrailTrait.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Menu\AssertMenuActiveTrailTrait instead.

trait
AssertPageCacheContextsAndTagsTrait core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait instead.

trait 2
BaseFieldDefinition::getFieldItemClass core/lib/Drupal/Core/Field/BaseFieldDefinition.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TypedData\ListDataDefinition::getClass() instead.

function
BaseFieldDefinition::setQueryable core/lib/Drupal/Core/Field/BaseFieldDefinition.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\BaseFieldDefinition::setCustomStorage() instead.

function
BaseFieldOverrideResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/BaseFieldOverride/BaseFieldOverrideResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase instead.

class
BasicAuthTestTrait core/modules/basic_auth/src/Tests/BasicAuthTestTrait.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\basic_auth\Traits\BasicAuthTestTrait instead.

trait
Block::$context core/lib/Drupal/Core/Block/Annotation/Block.php

Providing context definitions via the "context" key is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use the "context_definitions" key instead.

property
BlockContentInterface::getRevisionLog core/modules/block_content/src/BlockContentInterface.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionLogMessage() instead.

function 1
BlockContentInterface::setRevisionLog core/modules/block_content/src/BlockContentInterface.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionLogMessage() instead.

function 1
BlockContentResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/BlockContent/BlockContentResourceTestBase.php

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

class
BlockContentTestBase core/modules/block_content/src/Tests/Views/BlockContentTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\block_content\Functional\Views\BlockContentTestBase.

class
BlockContentTestBase core/modules/block_content/src/Tests/BlockContentTestBase.php

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

class
BlockContentTypeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/BlockContentType/BlockContentTypeResourceTestBase.php

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

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

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

trait
BlockInterface::BLOCK_LABEL_VISIBLE core/modules/block/src/BlockInterface.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Block\BlockPluginInterface::BLOCK_LABEL_VISIBLE.

constant
BlockInterface::BLOCK_REGION_NONE core/modules/block/src/BlockInterface.php

in drupal:8.?.? and is removed from drupal:9.0.0.

constant
BlockPluginId::$migrationPlugin core/modules/block/src/Plugin/migrate/process/BlockPluginId.php

in drupal:8.8.x and is removed from drupal:9.0.0. Use the migrate.lookup service instead.

property
BlockResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Block/BlockResourceTestBase.php

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

class
BlockTestBase core/modules/block/src/Tests/BlockTestBase.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\block\Functional\BlockTestBase.

class
BlockVisibility::$migrationPlugin core/modules/block/src/Plugin/migrate/process/BlockVisibility.php

in drupal:8.8.x and is removed from drupal:9.0.0. Use the migrate.lookup service instead.

property

Other projects


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