Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
drupal_render core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the 'renderer' service instead.

function
drupal_render_children core/includes/common.inc

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.

function
drupal_render_root core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Render\RendererInterface::renderRoot() instead.

function 1
drupal_rmdir core/includes/file.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::rmdir().

function 1
drupal_schema_get_field_value core/includes/schema.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue() instead.

function 1
drupal_set_message core/includes/bootstrap.inc

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.

function 1
drupal_set_time_limit core/includes/common.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Environment::setTimeLimit() instead.

function 1
drupal_tempnam core/includes/file.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::tempnam().

function 1
drupal_unlink core/includes/file.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::unlink().

function 1
DRUPAL_USER_TIMEZONE_DEFAULT core/modules/system/system.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_DEFAULT instead.

constant
DRUPAL_USER_TIMEZONE_EMPTY core/modules/system/system.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_EMPTY instead.

constant
DRUPAL_USER_TIMEZONE_SELECT core/modules/system/system.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::TIMEZONE_SELECT instead.

constant
drupal_validate_utf8 core/includes/bootstrap.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Component\Utility\Unicode::validateUtf8().

function
drupal_xml_parser_create core/includes/unicode.inc

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.

function
EditEntityFieldAccessCheck core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php

in drupal:8.4.0 and is removed from drupal:9.0.0.

class
EditEntityFieldAccessCheckInterface core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php

in drupal:8.4.0 and is removed from drupal:9.0.0.

interface
EditorResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Editor/EditorResourceTestBase.php

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

class
element_info core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('element_info')->getInfo() instead.

function
element_info_property core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('element_info')->getInfoProperty() instead.

function
Email core/lib/Drupal/Core/Field/Plugin/migrate/field/Email.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\field\Plugin\migrate\field\Email instead.

class 1
Entity core/lib/Drupal/Core/Entity/Entity.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityBase instead.

class
EntityBase::entityManager core/lib/Drupal/Core/Entity/EntityBase.php

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.

function
EntityCacheTagsTestBase core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php

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

class 1
EntityConverter::getLatestTranslationAffectedRevision core/lib/Drupal/Core/ParamConverter/EntityConverter.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead.

function
EntityConverter::loadRevision core/lib/Drupal/Core/ParamConverter/EntityConverter.php

in drupal:8.7.0 and is removed from drupal:9.0.0.

function
EntityDefinitionTestTrait core/modules/system/src/Tests/Entity/EntityDefinitionTestTrait.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait.

trait
EntityDefinitionUpdateManagerInterface::applyUpdates core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php

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.

function 1
EntityDisplayBase::handleHiddenType core/lib/Drupal/Core/Entity/EntityDisplayBase.php

in drupal:8.3.0 and is removed from drupal:9.0.0. No replacement is provided.

function
EntityDisplayFormBase::reduceOrder core/modules/field_ui/src/Form/EntityDisplayFormBase.php

in drupal:8.0.0 and is removed from drupal:9.0.0.

function
EntityDisplayFormBase::tablePreRender core/modules/field_ui/src/Form/EntityDisplayFormBase.php

in drupal:8.0.0 and is removed from drupal:9.0.0.

function
EntityFieldStorageConfig core/modules/migrate_drupal/src/Plugin/migrate/destination/EntityFieldStorageConfig.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\migrate\Plugin\migrate\destination\EntityFieldStorageConfig instead.

class
EntityFormDisplayResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/EntityFormDisplay/EntityFormDisplayResourceTestBase.php

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

class
EntityFormInterface::setEntityManager core/lib/Drupal/Core/Entity/EntityFormInterface.php

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

function 1
EntityFormModeResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/EntityFormMode/EntityFormModeResourceTestBase.php

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

class
EntityInterface::link core/lib/Drupal/Core/Entity/EntityInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\EntityInterface::toLink()->toString() instead.

function 2
EntityInterface::url core/lib/Drupal/Core/Entity/EntityInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Please use toUrl() instead.

function 2
EntityInterface::urlInfo core/lib/Drupal/Core/Entity/EntityInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityInterface::toUrl() instead.

function 2
EntityListBuilder::getLabel core/lib/Drupal/Core/Entity/EntityListBuilder.php

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.

function
EntityManager::clearCachedBundles core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::clearCachedBundles() instead.

function
EntityManager::clearCachedDefinitions core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::clearCachedDefinitions() instead.

function
EntityManager::clearCachedFieldDefinitions core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::clearCachedFieldDefinitions() instead.

function
EntityManager::clearDisplayModeInfo core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::clearDisplayModeInfo() instead.

function
EntityManager::createHandlerInstance core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::createHandlerInstance() instead.

function
EntityManager::createInstance core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::createInstance() instead.

function
EntityManager::getAccessControlHandler core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getAccessControlHandler() instead.

function
EntityManager::getActive core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead.

function
EntityManager::getActiveDefinition core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getActiveDefinition() instead.

function
EntityManager::getActiveFieldStorageDefinitions core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() instead.

function
EntityManager::getActiveMultiple core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple() instead.

function
EntityManager::getAllBundleInfo core/lib/Drupal/Core/Entity/EntityManager.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getAllBundleInfo() instead.

function

Other projects


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