Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
block_place.module core/modules/block_place/block_place.module

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

file
Book core/modules/book/src/Plugin/migrate/source/d6/Book.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\book\Plugin\migrate\source\Book instead. See https://www.drupal.org/node/2947487 for more information.

class 1
BootstrapConfigStorageFactory::getFileStorage core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory.

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

in drupal:8.1.0 and is removed from drupal:9.0.0. Use Drupal\Tests\BrowserTestBase instead.

class
BrowserTestBase::drupalGetHeaders core/tests/Drupal/Tests/BrowserTestBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use $this->getSession()->getResponseHeaders() instead.

function 1
BulkForm core/modules/system/src/Plugin/views/field/BulkForm.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\views\Plugin\views\field\BulkForm instead.

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

in drupal:8.0.0 and is removed from drupal:9.0.0. Use assert(\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)) instead.

function 1
CacheTestBase core/modules/system/src/Tests/Cache/CacheTestBase.php

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

class
CckFieldPluginBase core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase instead.

class 8 8
CckFile core/modules/file/src/Plugin/migrate/process/d6/CckFile.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile instead.

class 2
CckLink core/modules/link/src/Plugin/migrate/process/d6/CckLink.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\link\Plugin\migrate\process\FieldLink instead.

class
CckMigration core/modules/migrate_drupal/src/Plugin/migrate/CckMigration.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\FieldMigration instead.

class
check_url core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol() instead. UrlHelper::stripDangerousProtocols() can be used in conjunction with \Drupal\Component\Render\FormattableMarkup and an @variable placeholder which will perform the necessary escaping. UrlHelper::filterBadProtocol() is functionality equivalent to check_url() apart from the fact it is protected from double escaping bugs. Note that this method no longer marks its output as safe.

function 1
color_block_view_pre_render core/modules/color/color.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\color\ColorSystemBrandingBlockAlter::preRender() instead.

function 1
CommentHalJsonTestBase core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase instead.

class
CommentInterface::getStatus core/modules/comment/src/CommentInterface.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityPublishedInterface::isPublished() instead.

function 1
CommentResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php

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

class
CommentTestBase core/modules/comment/src/Tests/CommentTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\comment\Functional\CommentTestBase instead.

class
CommentTestBase core/modules/comment/src/Tests/Views/CommentTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\comment\Functional\Views\CommentTestBase instead.

class
CommentType core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d7\NodeType instead.

class
CommentTypeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/CommentType/CommentTypeResourceTestBase.php

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

class
CommentVariable core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d6\NodeType instead.

class 1
CommentVariablePerCommentType core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d6\NodeType instead.

class
COMMENT_ANONYMOUS_MAYNOT_CONTACT core/modules/comment/comment.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead.

constant
COMMENT_ANONYMOUS_MAY_CONTACT core/modules/comment/comment.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead.

constant
COMMENT_ANONYMOUS_MUST_CONTACT core/modules/comment/comment.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT instead.

constant
comment_view core/modules/comment/comment.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('comment')->view().

function 1
comment_view_multiple core/modules/comment/comment.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('comment')->viewMultiple().

function 1
Condition::$context core/lib/Drupal/Core/Condition/Annotation/Condition.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
ConfigAfterInstallerTestBase core/modules/system/src/Tests/Installer/ConfigAfterInstallerTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalTests\Installer\ConfigAfterInstallerTestBase.

class
ConfigDependencyManager::sortGraph core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareMultisort() and array_multisort() instead.

function
ConfigDependencyManager::sortGraphByWeight core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareMultisort() and array_multisort() instead.

function
ConfigInstaller::drupalInstallationAttempted core/lib/Drupal/Core/Config/ConfigInstaller.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead.

function
ConfigManagerInterface::getEntityManager core/lib/Drupal/Core/Config/ConfigManagerInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\ConfigManagerInterface::getEntityTypeManager() instead.

function 1
ConfigSchemaChecker core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Config\Development\ConfigSchemaChecker.

class
ConfigSync::finishBatch core/modules/config/src/Form/ConfigSync.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::finish() instead.

function
ConfigSync::processBatch core/modules/config/src/Form/ConfigSync.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::process() instead.

function
ConfigTestResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ConfigTest/ConfigTestResourceTestBase.php

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

class
ConfigurableEntityReferenceItem core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php

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

class
ConfigurableLanguageResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ConfigurableLanguage/ConfigurableLanguageResourceTestBase.php

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

class
ConfigurableLinkManagerInterface core/modules/rest/src/LinkManager/ConfigurableLinkManagerInterface.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
ConfigurablePluginInterface core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php

Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement ConfigurableInterface and/or DependentPluginInterface directly as needed. If you implement ConfigurableInterface you may choose to implement ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility, however this must be removed prior to Drupal 9.

interface 13 14
CONFIG_ACTIVE_DIRECTORY core/includes/bootstrap.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory.

constant 2
$config_directories core/globals.api.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.

global
config_get_config_directory core/includes/bootstrap.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.

function 6
CONFIG_STAGING_DIRECTORY core/includes/bootstrap.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. The staging directory was renamed to sync.

constant 1
CONFIG_SYNC_DIRECTORY core/includes/bootstrap.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead.

constant 4
Constraint::toArray core/lib/Drupal/Component/Version/Constraint.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Only exists to provide a backwards compatibility layer.

function
ContactFormResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ContactForm/ContactFormResourceTestBase.php

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

class
ContentEntityStorageBase::doLoadRevisionFieldItems core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php

in drupal:8.5.0 and is removed from drupal:9.0.0. \Drupal\Core\Entity\ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems() should be implemented instead.

function 1 2

Other projects


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