Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecationsort ascending Direct uses Namespaced uses Overrides Use statements
ParserRegistry::get drupal/core/vendor/guzzle/parser/Guzzle/Parser/ParserRegistry.php function Will be removed in 3.1.0
ParserRegistry::set drupal/core/vendor/guzzle/parser/Guzzle/Parser/ParserRegistry.php function Will be removed in 3.1.0
confirm_form drupal/core/modules/system/system.module function Use \Drupal\Core\Form\ConfirmFormBase instead. 19
entity_get_controller drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getStorageController().
entity_access_controller drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getRenderController().
entity_form_controller drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getFormController().
entity_list_controller drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getFormController().
entity_render_controller drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getFormController().
entity_get_info drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getDefinitions() directly. 73
lock drupal/core/includes/bootstrap.inc function Use Drupal::lock() instead, or even better have the lock service injected into your object.
EntityBody::calculateMd5 drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php function This will be deprecated soon
Drupal::getContainer drupal/core/lib/Drupal.php function This method is only useful for the testing environment, and as a BC shiv for drupal_container(). It should not be used otherwise. 6
drupal_container drupal/core/includes/bootstrap.inc function This function has been replaced by the \Drupal class. Use that instead. 12
LoggerInterface::warn drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/LoggerInterface.php function since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible. 1
NullLogger::warn drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible.
LoggerInterface::err drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/LoggerInterface.php function since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible. 1
NullLogger::err drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible.
LoggerInterface::emerg drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/LoggerInterface.php function since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible. 1
NullLogger::emerg drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible.
LoggerInterface::crit drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/LoggerInterface.php function since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible. 1
NullLogger::crit drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible.
LoggerInterface drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/LoggerInterface.php interface since 2.2, to be removed in 3.0. Type-hint \Psr\Log\LoggerInterface instead. 1 2
Twig_NodeInterface drupal/core/vendor/twig/twig/lib/Twig/NodeInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_FunctionCallableInterface drupal/core/vendor/twig/twig/lib/Twig/FunctionCallableInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_FilterInterface drupal/core/vendor/twig/twig/lib/Twig/FilterInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Test drupal/core/vendor/twig/twig/lib/Twig/Test.php class since 1.12 (to be removed in 2.0) 3
Twig_Function drupal/core/vendor/twig/twig/lib/Twig/Function.php class since 1.12 (to be removed in 2.0) 3
Twig_TestInterface drupal/core/vendor/twig/twig/lib/Twig/TestInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_FilterCallableInterface drupal/core/vendor/twig/twig/lib/Twig/FilterCallableInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Function_Method drupal/core/vendor/twig/twig/lib/Twig/Function/Method.php class since 1.12 (to be removed in 2.0)
Twig_TestCallableInterface drupal/core/vendor/twig/twig/lib/Twig/TestCallableInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Function_Function drupal/core/vendor/twig/twig/lib/Twig/Function/Function.php class since 1.12 (to be removed in 2.0)
Twig_Function_Node drupal/core/vendor/twig/twig/lib/Twig/Function/Node.php class since 1.12 (to be removed in 2.0)
Twig_FunctionInterface drupal/core/vendor/twig/twig/lib/Twig/FunctionInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_ParserInterface drupal/core/vendor/twig/twig/lib/Twig/ParserInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_ExistsLoaderInterface drupal/core/vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php interface since 1.12 (to be removed in 2.0) 4
Twig_TokenParserBroker drupal/core/vendor/twig/twig/lib/Twig/TokenParserBroker.php class since 1.12 (to be removed in 2.0)
Twig_LexerInterface drupal/core/vendor/twig/twig/lib/Twig/LexerInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Test_Method drupal/core/vendor/twig/twig/lib/Twig/Test/Method.php class since 1.12 (to be removed in 2.0)
Twig_Test_Function drupal/core/vendor/twig/twig/lib/Twig/Test/Function.php class since 1.12 (to be removed in 2.0)
Twig_TokenParserBrokerInterface drupal/core/vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Test_Node drupal/core/vendor/twig/twig/lib/Twig/Test/Node.php class since 1.12 (to be removed in 2.0)
Twig_Filter drupal/core/vendor/twig/twig/lib/Twig/Filter.php class since 1.12 (to be removed in 2.0) 3
Twig_CompilerInterface drupal/core/vendor/twig/twig/lib/Twig/CompilerInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_TemplateInterface drupal/core/vendor/twig/twig/lib/Twig/TemplateInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Filter_Method drupal/core/vendor/twig/twig/lib/Twig/Filter/Method.php class since 1.12 (to be removed in 2.0)
Twig_Filter_Function drupal/core/vendor/twig/twig/lib/Twig/Filter/Function.php class since 1.12 (to be removed in 2.0)
Twig_Filter_Node drupal/core/vendor/twig/twig/lib/Twig/Filter/Node.php class since 1.12 (to be removed in 2.0)
Twig_Environment::removeExtension drupal/core/vendor/twig/twig/lib/Twig/Environment.php function since 1.12 (to be removed in 2.0)
drupal_add_http_header drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 13

Pages

Other projects