You are here

Deprecated in Drupal 8

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
BlockVisibility::$migrationPlugin core/modules/block/src/Plugin/migrate/process/BlockVisibility.php property in drupal:8.8.x and is removed from drupal:9.0.0. Use the migrate.lookup service instead.
block_place.module core/modules/block_place/block_place.module file in drupal:8.8.0 and is removed from drupal:9.0.0. See the change record for a list of alternatives.
Book core/modules/book/src/Plugin/migrate/source/d6/Book.php class 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. 1
BootstrapConfigStorageFactory::getFileStorage core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory.
BrowserTestBase core/modules/simpletest/src/BrowserTestBase.php class in drupal:8.1.0 and is removed from drupal:9.0.0. Use Drupal\Tests\BrowserTestBase instead.
BrowserTestBase::drupalGetHeaders core/tests/Drupal/Tests/BrowserTestBase.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use $this->getSession()->getResponseHeaders() instead. 1
BulkForm core/modules/system/src/Plugin/views/field/BulkForm.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\views\Plugin\views\field\BulkForm instead.
Cache::validateTags core/lib/Drupal/Core/Cache/Cache.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use assert(\Drupal\Component\Assertion\Inspector::assertAllStrings($tags)) instead. 1
CacheTestBase core/modules/system/src/Tests/Cache/CacheTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Cache\CacheTestBase instead.
CckFieldPluginBase core/modules/migrate_drupal/src/Plugin/migrate/cckfield/CckFieldPluginBase.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase instead. 8 8
CckFile core/modules/file/src/Plugin/migrate/process/d6/CckFile.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile instead. 2
CckLink core/modules/link/src/Plugin/migrate/process/d6/CckLink.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\link\Plugin\migrate\process\FieldLink instead.
CckMigration core/modules/migrate_drupal/src/Plugin/migrate/CckMigration.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\FieldMigration instead.
check_url core/includes/common.inc function 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. 1
color_block_view_pre_render core/modules/color/color.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\color\ColorSystemBrandingBlockAlter::preRender() instead. 1
CommentHalJsonTestBase core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase instead.
CommentInterface::getStatus core/modules/comment/src/CommentInterface.php function in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityPublishedInterface::isPublished() instead. 1
CommentResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Comment/CommentResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase instead.
CommentTestBase core/modules/comment/src/Tests/CommentTestBase.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\comment\Functional\CommentTestBase instead.
CommentTestBase core/modules/comment/src/Tests/Views/CommentTestBase.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\comment\Functional\Views\CommentTestBase instead.
CommentType core/modules/comment/src/Plugin/migrate/source/d7/CommentType.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d7\NodeType instead.
CommentTypeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/CommentType/CommentTypeResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\comment\Functional\Rest\CommentTypeResourceTestBase instead.
CommentVariable core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d6\NodeType instead. 1
CommentVariablePerCommentType core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php class in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\node\Plugin\migrate\source\d6\NodeType instead.
COMMENT_ANONYMOUS_MAYNOT_CONTACT core/modules/comment/comment.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAYNOT_CONTACT instead.
COMMENT_ANONYMOUS_MAY_CONTACT core/modules/comment/comment.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MAY_CONTACT instead.
COMMENT_ANONYMOUS_MUST_CONTACT core/modules/comment/comment.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\comment\CommentInterface::ANONYMOUS_MUST_CONTACT instead.
comment_view core/modules/comment/comment.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('comment')->view(). 1
comment_view_multiple core/modules/comment/comment.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('comment')->viewMultiple(). 1
Condition::$context core/lib/Drupal/Core/Condition/Annotation/Condition.php property 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.
ConfigAfterInstallerTestBase core/modules/system/src/Tests/Installer/ConfigAfterInstallerTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\FunctionalTests\Installer\ConfigAfterInstallerTestBase.
ConfigDependencyManager::sortGraph core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php function in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareMultisort() and array_multisort() instead.
ConfigDependencyManager::sortGraphByWeight core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php function in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareMultisort() and array_multisort() instead.
ConfigInstaller::drupalInstallationAttempted core/lib/Drupal/Core/Config/ConfigInstaller.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead.
ConfigManagerInterface::getEntityManager core/lib/Drupal/Core/Config/ConfigManagerInterface.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\ConfigManagerInterface::getEntityTypeManager() instead. 1
ConfigSchemaChecker core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Config\Development\ConfigSchemaChecker.
ConfigSync::finishBatch core/modules/config/src/Form/ConfigSync.php function in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::finish() instead.
ConfigSync::processBatch core/modules/config/src/Form/ConfigSync.php function in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\Importer\ConfigImporterBatch::process() instead.
ConfigTestResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ConfigTest/ConfigTestResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\config_test\Functional\Rest\ConfigTestResourceTestBase instead.
ConfigurableEntityReferenceItem core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php class in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem instead.
ConfigurableLanguageResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ConfigurableLanguage/ConfigurableLanguageResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\language\Functional\Rest\ConfigurableLanguageResourceTestBase instead.
ConfigurableLinkManagerInterface core/modules/rest/src/LinkManager/ConfigurableLinkManagerInterface.php interface 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.
ConfigurablePluginInterface core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php interface 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. 13 14
CONFIG_ACTIVE_DIRECTORY core/includes/bootstrap.inc constant in drupal:8.0.0 and is removed from drupal:9.0.0. Drupal core no longer creates an active directory. 2
config_get_config_directory core/includes/bootstrap.inc function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead. 6
CONFIG_STAGING_DIRECTORY core/includes/bootstrap.inc constant in drupal:8.0.0 and is removed from drupal:9.0.0. The staging directory was renamed to sync. 1
CONFIG_SYNC_DIRECTORY core/includes/bootstrap.inc constant in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Site\Settings::get('config_sync_directory') instead. 4
Constraint::toArray core/lib/Drupal/Component/Version/Constraint.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Only exists to provide a backwards compatibility layer.
ContactFormResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ContactForm/ContactFormResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\contact\Functional\Rest\ContactFormResourceTestBase instead.
ContentEntityStorageBase::doLoadRevisionFieldItems core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php function in drupal:8.5.0 and is removed from drupal:9.0.0. \Drupal\Core\Entity\ContentEntityStorageBase::doLoadMultipleRevisionsFieldItems() should be implemented instead. 1 2

Pages

Other projects