Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecation Direct uses Namespaced usessort descending Overrides Use statements
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.
confirm_form drupal/core/modules/system/system.module function Use \Drupal\Core\Form\ConfirmFormBase instead. 19
cache_invalidate_tags drupal/core/includes/cache.inc function 8.x Use \Drupal\Core\Cache\Cache::invalidateTags(). 25
field_create_field drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use entity_create('field_entity', $definition)->save(). See: Field API data structures. 121
field_update_field drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $field->save(). 33
field_delete_field drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $field->delete(). 7
field_create_instance drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use entity_create('field_instance', $definition)->save(). See: Field API data structures. 122
field_update_instance drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $instance->save(). 17
field_delete_instance drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $instance->delete(). 8
Twig_Environment::removeExtension drupal/core/vendor/twig/twig/lib/Twig/Environment.php function since 1.12 (to be removed in 2.0)
Twig_TokenParserBroker drupal/core/vendor/twig/twig/lib/Twig/TokenParserBroker.php class since 1.12 (to be removed in 2.0)
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)

Pages

Other projects