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
MessageResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Message/MessageResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase instead.
MigrateCckField core/modules/migrate_drupal/src/Annotation/MigrateCckField.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Annotation\MigrateField instead. Plugin Namespace: Plugin\migrate\cckfield
MigrateCckFieldInterface core/modules/migrate_drupal/src/Plugin/MigrateCckFieldInterface.php interface in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Annotation\MigrateField instead. 1 2
MigrateCckFieldPluginManager core/modules/migrate_drupal/src/Plugin/MigrateCckFieldPluginManager.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager instead.
MigrateCckFieldPluginManagerInterface core/modules/migrate_drupal/src/Plugin/MigrateCckFieldPluginManagerInterface.php interface in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface instead. 1 3
MigrateIdMapInterface::getMessageIterator core/modules/migrate/src/Plugin/MigrateIdMapInterface.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\MigrateIdMapInterface::getMessages() instead. 2
MigrateIdMapInterface::lookupDestinationId core/modules/migrate/src/Plugin/MigrateIdMapInterface.php function in drupal:8.1.0 and is removed from drupal:9.0.0. Use lookupDestinationIds() instead. 2
MigrateSqlSourceTestCase core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase.php class in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase instead. 4 4
Migration core/modules/migrate/src/Plugin/migrate/process/Migration.php class in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\migrate\process\MigrationLookup instead. 1
Migration::get core/modules/migrate/src/Plugin/Migration.php function in drupal:8.1.0 and is removed from drupal:9.0.0. Use more specific getters instead.
MigrationCreationTrait core/modules/migrate_drupal/src/MigrationCreationTrait.php trait in drupal:8.1.0 and is removed from drupal:9.0.0. Use \Drupal\migrate_drupal\MigrationConfigurationTrait instead.
MigrationLookup::createStubRow core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use the migrate.stub service to create stubs.
MissingGroupException core/modules/simpletest/src/Exception/MissingGroupException.php class in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\Exception\MissingGroupException instead.
MockEditEntityFieldAccessCheck core/modules/quickedit/tests/modules/src/MockEditEntityFieldAccessCheck.php class in drupal:8.4.0 and is removed from drupal:9.0.0.
ModerationInformationInterface::getLatestRevision core/modules/content_moderation/src/ModerationInformationInterface.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId and RevisionableStorageInterface::loadRevision instead. 1
ModerationInformationInterface::getLatestRevisionId core/modules/content_moderation/src/ModerationInformationInterface.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableStorageInterface::getLatestRevisionId instead. 1
ModerationInformationInterface::isLatestRevision core/modules/content_moderation/src/ModerationInformationInterface.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use RevisionableInterface::isLatestRevision instead. 1
ModerationOptOutPublishNode core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublishNode.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\content_moderation\Plugin\Action\ModerationOptOutPublish instead.
ModerationOptOutUnpublishNode core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublishNode.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\content_moderation\Plugin\Action\ModerationOptOutUnpublish instead.
ModuleHandler::parseDependency core/lib/Drupal/Core/Extension/ModuleHandler.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Extension\Dependency::createFromString() instead. 1
ModuleTestBase core/modules/system/src/Tests/Module/ModuleTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Module\ModuleTestBase instead.
Node::getCckData core/modules/node/src/Plugin/migrate/source/d6/Node.php function in drupal:8.2.0 and is removed from drupal:9.0.0. Use getFieldData() instead.
Node::getCurrentUserId core/modules/node/src/Entity/Node.php function The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0. 1
NodeAccessControlHandlerInterface::writeGrants core/modules/node/src/NodeAccessControlHandlerInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\NodeAccessControlHandlerInterface::acquireGrants(). 1
NodeController::add core/modules/node/src/Controller/NodeController.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Define entity form routes through the _entity_form instead through the _controller directive.
NodeCreationTrait core/modules/simpletest/src/NodeCreationTrait.php trait in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\node\Traits\NodeCreationTrait instead.
NodeForm::updateStatus core/modules/node/src/NodeForm.php function in drupal:8.4.0 and is removed from drupal:9.0.0. The "Publish" button was removed.
NodeInterface::getRevisionAuthor core/modules/node/src/NodeInterface.php function in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser() instead. 1
NodeInterface::setRevisionAuthorId core/modules/node/src/NodeInterface.php function in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId() instead. 1
NodeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Node/NodeResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\node\Functional\Rest\NodeResourceTestBase instead.
NodeTestBase core/modules/node/src/Tests/NodeTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\node\Functional\NodeTestBase instead.
NodeTestBase core/modules/node/src/Tests/Views/NodeTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\node\Functional\Views\NodeTestBase instead.
NodeTypeInterface::isNewRevision core/modules/node/src/NodeTypeInterface.php function in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision() instead. 1
NodeTypeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/NodeType/NodeTypeResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\node\Functional\Rest\NodeTypeResourceTestBase instead.
node_load core/modules/node/node.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\Entity\Node::load(). 1
node_load_multiple core/modules/node/node.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\Entity\Node::loadMultiple(). 1
NODE_NOT_PROMOTED core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::NOT_PROMOTED instead.
NODE_NOT_PUBLISHED core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::NOT_PUBLISHED instead.
NODE_NOT_STICKY core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::NOT_STICKY instead.
NODE_PROMOTED core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::PROMOTED instead.
NODE_PUBLISHED core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::PUBLISHED instead.
NODE_STICKY core/modules/node/node.module constant in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\node\NodeInterface::STICKY instead.
node_type_get_types core/modules/node/node.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\Entity\NodeType::loadMultiple().
node_type_load core/modules/node/node.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\node\Entity\NodeType::load(). 1
node_view core/modules/node/node.module function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('node')->view() instead. 1
node_view_multiple core/modules/node/node.module function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('node')->viewMultiple() instead. 1
NormalizerTestBase core/modules/serialization/src/Tests/NormalizerTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\serialization\Kernel\NormalizerTestBase instead.
NumberField core/lib/Drupal/Core/Field/Plugin/migrate/field/d7/NumberField.php class in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\field\Plugin\migrate\field\d7\NumberField instead. 1
OffCanvasTestBase::waitForNoElement core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalJavascriptTests\JSWebAssert::assertNoElementAfterWait()
PageCacheTagsTestBase core/modules/system/src/Tests/Cache/PageCacheTagsTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase instead. 1 1

Pages

Other projects