You are here

Deprecated in Zircon Profile 8

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
db_truncate core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call truncate() on it. E.g. $injected_database->truncate($table, $options); 1
db_update core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call update() on it. E.g. $injected_database->update($table, $options); 1
db_xor core/includes/database.inc function as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an XOR conjunction: new Condition('XOR');
DebugClassLoader vendor/symfony/class-loader/DebugClassLoader.php class since version 2.4, to be removed in 3.0. Use {@link \Symfony\Component\Debug\DebugClassLoader} instead.
DebugClassLoader::findFile vendor/symfony/debug/DebugClassLoader.php function since version 2.5, to be removed in 3.0.
DebugUniversalClassLoader vendor/symfony/class-loader/DebugUniversalClassLoader.php class since version 2.4, to be removed in 3.0. Use the {@link \Symfony\Component\Debug\DebugClassLoader} class instead.
DefaultStrategy vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/DefaultStrategy.php class Use Zend\Hydrator\Strategy\DefaultStrategy from zendframework/zend-hydrator instead.
DefaultTranslator vendor/symfony/validator/DefaultTranslator.php class since version 2.7, to be removed in 3.0. Use Symfony\Component\Translation\IdentityTranslator instead.
Definition::getFactoryClass vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::getFactoryMethod vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::getFactoryService vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::isSynchronized vendor/symfony/dependency-injection/Definition.php function since version 2.7, will be removed in 3.0.
Definition::setFactoryClass vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setFactoryMethod vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setFactoryService vendor/symfony/dependency-injection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setSynchronized vendor/symfony/dependency-injection/Definition.php function since version 2.7, will be removed in 3.0.
DelegatingHydrator vendor/zendframework/zend-stdlib/src/Hydrator/DelegatingHydrator.php class Use Zend\Hydrator\DelegatingHydrator from zendframework/zend-hydrator instead.
DelegatingHydratorFactory vendor/zendframework/zend-stdlib/src/Hydrator/DelegatingHydratorFactory.php class Use Zend\Hydrator\DelegatingHydratorFactory from zendframework/zend-hydrator instead.
DeprecatedClass vendor/symfony/debug/Tests/Fixtures/DeprecatedClass.php class but this is a test deprecation notice.
DeprecatedInterface vendor/symfony/debug/Tests/Fixtures/DeprecatedInterface.php interface but this is a test deprecation notice.
DeprecatedTag vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTag.php class tag in a Docblock.
DeprecatedTagTest::testConstructorParesInputsIntoCorrectFields vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Tag/DeprecatedTagTest.php function doc block.
DialogHelper vendor/symfony/console/Helper/DialogHelper.php class since version 2.5, to be removed in 3.0. Use {@link \Symfony\Component\Console\Helper\QuestionHelper} instead. 2
Drupal::entityManager core/lib/Drupal.php function in Drupal 8.0.0 and will be removed before 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. 43
Drupal::url core/lib/Drupal.php function as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Instead create a \Drupal\Core\Url object directly, for example using Url::fromRoute(). 165
DrupalKernelInterface::prepareLegacyRequest core/lib/Drupal/Core/DrupalKernelInterface.php function 8.x Only used by legacy front-controller scripts. 1
DRUPAL_ANONYMOUS_RID core/includes/bootstrap.inc constant in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE or \Drupal\user\RoleInterface::ANONYMOUS_ID instead.
DRUPAL_AUTHENTICATED_RID core/includes/bootstrap.inc constant in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use Drupal\Core\Session\AccountInterface::AUTHENTICATED_ROLE or \Drupal\user\RoleInterface::AUTHENTICATED_ID instead.
drupal_basename core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::basename(). 32
drupal_chmod core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::chmod(). 10
drupal_clear_css_cache core/includes/common.inc function in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
drupal_clear_js_cache core/includes/common.inc function in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
drupal_dirname core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::dirname(). 6
drupal_get_destination core/includes/common.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use the redirect.destination service.
drupal_mkdir core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::mkdir(). 10
drupal_move_uploaded_file core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::moveUploadedFile(). 1
drupal_placeholder core/includes/bootstrap.inc function in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Component\Utility\SafeMarkup::format() or Twig's "placeholder" filter instead. Note this method should not be used to simply emphasize a string and therefore has few valid use-cases. Note also, that this method does not mark the string as safe.
drupal_pre_render_link core/includes/common.inc function in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Render\Element\Link::preRenderLink().
drupal_realpath core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::realpath(). 56
drupal_render core/includes/common.inc function as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the 'renderer' service instead. 40
drupal_render_children core/includes/common.inc function in Drupal 8.0.x and will be removed before 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 as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the 'renderer' service instead. 7
drupal_rmdir core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::rmdir(). 7
drupal_tempnam core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::tempnam(). 5
drupal_unlink core/includes/file.inc function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::unlink(). 21
drupal_validate_utf8 core/includes/bootstrap.inc function in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Component\Utility\Unicode::validateUtf8().
DummyException vendor/symfony/debug/Exception/DummyException.php class since version 2.5, to be removed in 3.0.
DynamicRouter::match vendor/symfony-cmf/routing/DynamicRouter.php function Use matchRequest exclusively to avoid problems. This method will be removed in version 2.0
Element::elementNotFound vendor/behat/mink/src/Element/Element.php function as of 1.7, to be removed in 2.0
Element::getSelectorsHandler vendor/behat/mink/src/Element/Element.php function Accessing the selectors handler in the element is deprecated as of 1.7 and will be impossible in 2.0.

Pages

Other projects