Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecationsort descending Direct uses Namespaced uses Overrides Use statements
cache_invalidate_tags drupal/core/includes/cache.inc function 8.x Use \Drupal\Core\Cache\Cache::invalidateTags(). 25
drupal_alter drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->alter($hook). 73
module_disable drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->disable($module_list, $disable_dependents = TRUE). 20
module_enable drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->enable($module_list, $enable_dependencies = TRUE). 57
module_implements drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->getImplementations($hook). 60
module_list drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->getModuleList().
module_hook drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->implementsHook($module, $hook). 7
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
module_exists drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->moduleExists($hook). 92
module_uninstall drupal/core/includes/module.inc function as of Drupal 8.0. Use Drupal::moduleHandler()->uninstall($module_list, $uninstall_dependents = TRUE). 7
language drupal/core/includes/bootstrap.inc function as of Drupal 8.0. Use Drupal::service('language_manager')->getLanguage($type). 53
drupal_http_build_query drupal/core/includes/common.inc function as of Drupal 8.0. Use Drupal::urlGenerator()->httpBuildQuery() instead. 10
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_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_delete_field drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $field->delete(). 7
field_update_field drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $field->save(). 33
field_delete_instance drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $instance->delete(). 8
field_update_instance drupal/core/modules/field/field.crud.inc function as of Drupal 8.0. Use $instance->save(). 17
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
valid_url drupal/core/includes/common.inc function as of Drupal 8.0. Use UrlValidator::isValid() instead. 3
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
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.
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/Annotation/Route.php function Deprecated in 2.2, to be removed in 3.0. Use setPath 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.
Optional drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection/Optional.php class Deprecated in 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Validator\Constraints\Optional} instead.
Required drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection/Required.php class Deprecated in 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Validator\Constraints\Required} instead.
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
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.
ExceptionHandler drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php class Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component 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
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
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
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

Pages

Other projects