Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecation Direct usessort descending Namespaced uses Overrides Use statements
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().
module_list drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->getModuleList().
lock drupal/core/includes/bootstrap.inc function Use Drupal::lock() instead, or even better have the lock service injected into your object.
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
Twig_Environment::removeExtension drupal/core/vendor/twig/twig/lib/Twig/Environment.php function since 1.12 (to be removed in 2.0)
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_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_TestCallableInterface drupal/core/vendor/twig/twig/lib/Twig/TestCallableInterface.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_TokenParserBrokerInterface drupal/core/vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php interface since 1.12 (to be removed in 2.0) 1
Twig_Filter drupal/core/vendor/twig/twig/lib/Twig/Filter.php class since 1.12 (to be removed in 2.0) 3
Twig_TemplateInterface drupal/core/vendor/twig/twig/lib/Twig/TemplateInterface.php interface since 1.12 (to be removed in 2.0) 1
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_Function drupal/core/vendor/twig/twig/lib/Twig/Function.php class since 1.12 (to be removed in 2.0) 3
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_CompilerInterface drupal/core/vendor/twig/twig/lib/Twig/CompilerInterface.php interface since 1.12 (to be removed in 2.0) 1
EntityBody::calculateMd5 drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php function This will be deprecated soon
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
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_Function_Method drupal/core/vendor/twig/twig/lib/Twig/Function/Method.php class since 1.12 (to be removed in 2.0)
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_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_Test_Node drupal/core/vendor/twig/twig/lib/Twig/Test/Node.php class since 1.12 (to be removed in 2.0)
Route::getPattern drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php function Deprecated in 2.2, to be removed in 3.0. Use getPath instead.
Route::setPattern drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php function Deprecated in 2.2, to be removed in 3.0. Use setPath instead.
Kernel::init drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php function Deprecated since version 2.3, to be removed in 3.0. Move your logic in the constructor instead. 1 3
Route::setPattern drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Annotation/Route.php function Deprecated in 2.2, to be removed in 3.0. Use setPath instead.
Route::getPattern drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Annotation/Route.php function Deprecated in 2.2, to be removed in 3.0. Use getPath instead.
FlattenException drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/FlattenException.php class Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead. 5
FatalErrorException drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Exception/FatalErrorException.php class Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
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
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
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
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
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

Pages

Other projects