You are here

Deprecated in Drupal 9

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
hook_field_widget_multivalue_form_alter core/modules/field/field.api.php function in drupal:9.2.0 and is removed from drupal:10.0.0. Use hook_field_widget_complete_form_alter instead.
hook_field_widget_multivalue_WIDGET_TYPE_form_alter core/modules/field/field.api.php function in drupal:9.2.0 and is removed from drupal:10.0.0. Use hook_field_widget_complete_WIDGET_TYPE_form_alter instead.
hook_field_widget_WIDGET_TYPE_form_alter core/modules/field/field.api.php function in drupal:9.2.0 and is removed from drupal:10.0.0. Use hook_field_widget_single_element_WIDGET_TYPE_form_alter instead.
LayoutBuilderContextTrait::getAvailableContexts core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\layout_builder\Context\LayoutBuilderContextTrait::getPopulatedContexts() instead.
LibraryDiscoveryParser::drupalGetPath core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionList::getPath() instead.
Mail::formatDisplayName core/lib/Drupal/Component/Utility/Mail.php function in drupal:9.2.0 and is removed from drupal:10.0.0. Use \Symfony\Component\Mime\Header\MailboxHeader instead. 1
menu_list_system_menus core/includes/menu.inc function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. 2
menu_ui_get_menus core/modules/menu_ui/menu_ui.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. 1
MimeTypeGuesser::addGuesser core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php function in drupal:9.1.0 and is removed from drupal:10.0.0. Use ::addMimeTypeGuesser() instead.
MimeTypePass core/lib/Drupal/Core/DependencyInjection/Compiler/MimeTypePass.php class in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. 2
ModuleVersion core/modules/update/src/ModuleVersion.php class in drupal:9.2.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionVersion instead. As an internal class ExtensionVersion may also be removed in a minor release. 1
NodeReference core/modules/migrate_drupal/src/Plugin/migrate/field/NodeReference.php class in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\field\d6\NodeReference instead. 1
NodeType core/modules/node/src/Plugin/Condition/NodeType.php class in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Entity\Plugin\Condition\EntityBundle instead.
PagerSelectExtender::$maxElement core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php property in drupal:9.2.0 and is removed from drupal:10.0.0. Use \Drupal::service('pager.manager')->getMaxPagerElementId() instead.
PREG_CLASS_CJK core/modules/search/search.module constant in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_CJK instead. 1
PREG_CLASS_NUMBERS core/modules/search/search.module constant in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_NUMBERS instead.
PREG_CLASS_PUNCTUATION core/modules/search/search.module constant in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::PREG_CLASS_PUNCTUATION instead.
Registry::getPath core/lib/Drupal/Core/Theme/Registry.php function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionList::getPath() instead.
render core/includes/common.inc function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Render\RendererInterface::render() instead. 1
RequestSanitizer::SANITIZE_WHITELIST core/lib/Drupal/Core/Security/RequestSanitizer.php constant in drupal:9.1.0 and is removed from drupal:10.0.0. Use SANITIZE_INPUT_SAFE_KEYS instead.
REQUEST_TIME core/includes/bootstrap.inc constant in drupal:8.3.0 and is removed from drupal:10.0.0. Use \Drupal::time()->getRequestTime(); 145
RouteProvider::getRoutesCount core/lib/Drupal/Core/Routing/RouteProvider.php function in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.
RouteProvider::getRoutesPaged core/lib/Drupal/Core/Routing/RouteProvider.php function in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.
RouteProviderLazyBuilder::getRoutesCount core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php function in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.
RouteProviderLazyBuilder::getRoutesPaged core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php function in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.
SCHEMA_UNINSTALLED core/includes/schema.inc constant in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::SCHEMA_UNINSTALLED constant instead.
search_expand_cjk core/modules/search/search.module function in drupal:9.1.0 and is removed from drupal:10.0.0. Use a custom implementation of SearchTextProcessorInterface instead. 1
search_index_split core/modules/search/search.module function in drupal:9.1.0 and is removed from drupal:10.0.0. Use a \Drupal\search\SearchTextProcessorInterface::process() instead. 1
search_invoke_preprocess core/modules/search/search.module function in drupal:9.1.0 and is removed from drupal:10.0.0. Use a custom implementation of SearchTextProcessor instead. 1
search_simplify core/modules/search/search.module function in drupal:9.1.0 and is removed from drupal:10.0.0. Use \Drupal\search\SearchTextProcessorInterface::analyze() instead. 1
SectionStorageTestBase core/modules/layout_builder/tests/src/Kernel/SectionStorageTestBase.php class in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Tests\layout_builder\Kernel\SectionListTestBase instead.
SectionStorageTrait core/modules/layout_builder/src/SectionStorage/SectionStorageTrait.php trait in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\layout_builder\SectionListTrait instead.
Statement core/lib/Drupal/Core/Database/Statement.php class in drupal:9.1.0 and is removed from drupal:10.0.0. Database drivers should use or extend StatementWrapper instead, and encapsulate client-level statement objects. 1
StatementEmpty core/lib/Drupal/Core/Database/StatementEmpty.php class in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. Use mocked StatementInterface classes in tests if needed. 1
StatementWrapper::bindColumn core/lib/Drupal/Core/Database/StatementWrapper.php function in drupal:9.1.0 and is removed from drupal:10.0.0. StatementWrapper::bindColumn should not be called. Access the client-level statement object via ::getClientStatement().
StatementWrapper::bindParam core/lib/Drupal/Core/Database/StatementWrapper.php function in drupal:9.1.0 and is removed from drupal:10.0.0. StatementWrapper::bindParam should not be called. Access the client-level statement object via ::getClientStatement().
StatementWrapper::__call core/lib/Drupal/Core/Database/StatementWrapper.php function in drupal:9.1.0 and is removed from drupal:10.0.0. Access the client-level statement object via ::getClientStatement().
StylePluginBase::wizardForm core/modules/views/src/Plugin/views/style/StylePluginBase.php function in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided.
system_sort_modules_by_info_name core/modules/system/system.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionList::sortByName() instead.
TaxonomyController::vocabularyTitle core/modules/taxonomy/src/Controller/TaxonomyController.php function in drupal:9.3.0 and is removed from drupal:10.0.0. There is no replacement; route title callbacks are internal.
taxonomy_implode_tags core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Entity\Element\EntityAutocomplete::getEntityLabels() instead. 1
taxonomy_terms_static_reset core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage('taxonomy_term')->resetCache() instead. 1
taxonomy_term_load_multiple_by_name core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')->loadByProperties(['name' => $name, 'vid' => $vid]) instead, to get a list of taxonomy term entities having the same name and keyed by their term ID. 1
taxonomy_term_title core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use $term->label() instead. 1
taxonomy_term_uri core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use $term->toUrl() instead. 1
taxonomy_vocabulary_get_names core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityQuery('taxonomy_vocabulary')->execute() instead. 1
taxonomy_vocabulary_static_reset core/modules/taxonomy/taxonomy.module function in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')->resetCache($ids) instead. 1
Term core/modules/taxonomy/src/Plugin/views/argument_validator/Term.php class in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\views\Plugin\views\argument_validator\Entity instead.
TipPluginBase::$attributes core/modules/tour/src/TipPluginBase.php property in drupal:9.2.0 and is removed from drupal:10.0.0. There is no direct replacement. Note that this was never actually used.
TipPluginInterface::getAttributes core/modules/tour/src/TipPluginInterface.php function in drupal:9.2.0 and is removed from drupal:10.0.0. The attributes property is no longer used. 1

Pages

Other projects