Deprecated

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Name Location Type Deprecation Direct uses Namespaced usessort ascending Overrides Use statements
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)
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.
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::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
NullLogger::emerg drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible.
NullLogger::crit drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible.
NullLogger::err drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible.
NullLogger::warn drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Log/NullLogger.php function since 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible.
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
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.
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.
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.

Pages

Other projects