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
drupal_render core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use the 'renderer' service instead.
drupal_render_children core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Avoid early rendering when possible or loop through the elements and render them as they are available.
drupal_render_root core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Render\RendererInterface::renderRoot() instead. 1
drupal_rmdir core/includes/file.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::rmdir(). 1
drupal_schema_get_field_value core/includes/schema.inc function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue() instead. 1
drupal_set_message core/includes/bootstrap.inc function in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead. 1
drupal_set_time_limit core/includes/common.inc function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Environment::setTimeLimit() instead. 1
drupal_tempnam core/includes/file.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::tempnam(). 1
drupal_unlink core/includes/file.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::unlink(). 1
DRUPAL_USER_TIMEZONE_DEFAULT core/modules/system/system.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_DEFAULT instead.
DRUPAL_USER_TIMEZONE_EMPTY core/modules/system/system.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_EMPTY instead.
DRUPAL_USER_TIMEZONE_SELECT core/modules/system/system.module constant in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_SELECT instead.
drupal_validate_utf8 core/includes/bootstrap.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Unicode::validateUtf8().
drupal_xml_parser_create core/includes/unicode.inc function in drupal:8.3.0 and is removed from drupal:9.0.0. Use xml_parser_create() and xml_parser_set_option($xml_parser, XML_OPTION_TARGET_ENCODING, 'utf-8') instead.
EditEntityFieldAccessCheck core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php class in drupal:8.4.0 and is removed from drupal:9.0.0.
EditEntityFieldAccessCheckInterface core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php interface in drupal:8.4.0 and is removed from drupal:9.0.0.
EditorResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Editor/EditorResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase instead.
element_info core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('element_info')->getInfo() instead.
element_info_property core/includes/common.inc function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('element_info')->getInfoProperty() instead.
Email core/lib/Drupal/Core/Field/Plugin/migrate/field/Email.php class in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\field\Plugin\migrate\field\Email instead. 1
Entity core/lib/Drupal/Core/Entity/Entity.php class in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityBase instead.
EntityBase::entityManager core/lib/Drupal/Core/Entity/EntityBase.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.
EntityCacheTagsTestBase core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase instead. 1
EntityConverter::getLatestTranslationAffectedRevision core/lib/Drupal/Core/ParamConverter/EntityConverter.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead.
EntityConverter::loadRevision core/lib/Drupal/Core/ParamConverter/EntityConverter.php function in drupal:8.7.0 and is removed from drupal:9.0.0.
EntityDefinitionTestTrait core/modules/system/src/Tests/Entity/EntityDefinitionTestTrait.php trait in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait.
EntityDefinitionUpdateManagerInterface::applyUpdates core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface::getChangeList() and execute each entity type and field storage update manually instead. 1
EntityDisplayBase::handleHiddenType core/lib/Drupal/Core/Entity/EntityDisplayBase.php function in drupal:8.3.0 and is removed from drupal:9.0.0. No replacement is provided.
EntityDisplayFormBase::reduceOrder core/modules/field_ui/src/Form/EntityDisplayFormBase.php function in drupal:8.0.0 and is removed from drupal:9.0.0.
EntityDisplayFormBase::tablePreRender core/modules/field_ui/src/Form/EntityDisplayFormBase.php function in drupal:8.0.0 and is removed from drupal:9.0.0.
EntityFieldStorageConfig core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php class in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig instead.
EntityFormDisplayResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/EntityFormDisplay/EntityFormDisplayResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Rest\EntityFormDisplayResourceTestBase instead.
EntityFormInterface::setEntityManager core/lib/Drupal/Core/Entity/EntityFormInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. 1
EntityFormModeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/EntityFormMode/EntityFormModeResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Rest\EntityFormModeResourceTestBase instead.
EntityInterface::link core/lib/Drupal/Core/Entity/EntityInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\EntityInterface::toLink()->toString() instead. 2
EntityInterface::url core/lib/Drupal/Core/Entity/EntityInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Please use toUrl() instead. 2
EntityInterface::urlInfo core/lib/Drupal/Core/Entity/EntityInterface.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityInterface::toUrl() instead. 2
EntityListBuilder::getLabel core/lib/Drupal/Core/Entity/EntityListBuilder.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use $entity->label() instead. This method used to escape the entity label. The render system's autoescape is now relied upon.
EntityManager::clearCachedBundles core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::clearCachedBundles() instead.
EntityManager::clearCachedDefinitions core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::clearCachedDefinitions() instead.
EntityManager::clearCachedFieldDefinitions core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::clearCachedFieldDefinitions() instead.
EntityManager::clearDisplayModeInfo core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::clearDisplayModeInfo() instead.
EntityManager::createHandlerInstance core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::createHandlerInstance() instead.
EntityManager::createInstance core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::createInstance() instead.
EntityManager::getAccessControlHandler core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getAccessControlHandler() instead.
EntityManager::getActive core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead.
EntityManager::getActiveDefinition core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getActiveDefinition() instead.
EntityManager::getActiveFieldStorageDefinitions core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() instead.
EntityManager::getActiveMultiple core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple() instead.
EntityManager::getAllBundleInfo core/lib/Drupal/Core/Entity/EntityManager.php function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getAllBundleInfo() instead.

Pages

Other projects