Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecation Direct uses Namespaced uses Overrides Use statementssort ascending
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
ErrorHandler drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ErrorHandler.php class Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead. 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.
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
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_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

Pages

Other projects