Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecation Direct uses Namespaced usessort ascending Overrides Use statements
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_ExistsLoaderInterface drupal/core/vendor/twig/twig/lib/Twig/ExistsLoaderInterface.php interface since 1.12 (to be removed in 2.0) 4
Twig_Test drupal/core/vendor/twig/twig/lib/Twig/Test.php class since 1.12 (to be removed in 2.0) 3
Twig_Filter drupal/core/vendor/twig/twig/lib/Twig/Filter.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_FilterInterface drupal/core/vendor/twig/twig/lib/Twig/FilterInterface.php interface since 1.12 (to be removed in 2.0) 1
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_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_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_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
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
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
entity_get_info drupal/core/includes/entity.inc function Use \Drupal\Core\Entity\EntityManager::getDefinitions() directly. 73
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_enable drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->enable($module_list, $enable_dependencies = TRUE). 57
module_disable drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->disable($module_list, $disable_dependents = TRUE). 20
module_uninstall drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->uninstall($module_list, $uninstall_dependents = TRUE). 7
drupal_http_build_query drupal/core/includes/common.inc function as of Drupal 8.0. Use Drupal::urlGenerator()->httpBuildQuery() instead. 10
valid_url drupal/core/includes/common.inc function as of Drupal 8.0. Use UrlValidator::isValid() instead. 3
drupal_explode_tags drupal/core/includes/common.inc function as of Drupal 8.0. Use Tags::explode() instead. 14
drupal_implode_tags drupal/core/includes/common.inc function as of Drupal 8.0. Use Tags::implode() instead. 6
timer_start drupal/core/includes/bootstrap.inc function as of Drupal 8.0. 2
timer_read drupal/core/includes/bootstrap.inc function as of Drupal 8.0. 1
timer_stop drupal/core/includes/bootstrap.inc function as of Drupal 8.0. 1
drupal_add_http_header drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 13
drupal_get_http_header drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 3
_drupal_set_preferred_header_name drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 2
drupal_send_headers drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 1
drupal_page_header drupal/core/includes/bootstrap.inc function Header handling is being shifted to a Symfony response object. 1
drupal_container drupal/core/includes/bootstrap.inc function This function has been replaced by the \Drupal class. Use that instead. 12
module_list drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->getModuleList().
module_implements drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->getImplementations($hook). 60
module_invoke drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->invoke($module, $hook, $args = array()). 46
module_invoke_all drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->invokeAll($hook). 86
drupal_alter drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->alter($hook). 73
module_exists drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->moduleExists($hook). 92
module_hook drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->implementsHook($module, $hook). 7
language drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::service('language_manager')->getLanguage($type). 53
lock drupal/core/includes/bootstrap.inc function Use Drupal::lock() instead, or even better have the lock service injected into your object.

Pages

Other projects