Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
ToStringTrait core/lib/Drupal/Component/Utility/ToStringTrait.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Implement the __toString() method directly, exception handling is no longer required.

trait
UserUpdate7002 core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
UserUpdate8002 core/modules/user/src/Plugin/migrate/process/UserUpdate8002.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class
user_form_process_password_confirm core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use UserThemeHooks::processPasswordConfirm() instead.

function
user_load_by_mail core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::entityTypeManager()->getStorage('user')->loadByProperties() instead.

function
user_load_by_name core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::entityTypeManager()->getStorage('user')->loadByProperties() instead.

function 1
Views::handlerManager core/modules/views/src/Views.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('plugin.manager.views.{type}') for specific types or \Drupal::service('views.plugin_managers')->get($type) for dynamic.

function 1
Views::pluginManager core/modules/views/src/Views.php

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('plugin.manager.views.{type}') for specific types or \Drupal::service('views.plugin_managers')->get($type) for dynamic.

function 1
views_add_contextual_links core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use Drupal\views\ContextualLinksHelper::addLinks() instead.

function
views_disable_view core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use $view->disable()->save() instead.

function
views_element_validate_tags core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

function
views_embed_view core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use '#type' => 'view' render elements instead.

function 1
views_enable_view core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use $view->enable()->save() instead.

function
views_get_current_view core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

function
views_get_view_result core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use Views::getViewResult($name, $display_id, ...$args) instead.

function
views_set_current_view core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

function
views_ui_contextual_links_suppress core/modules/views_ui/views_ui.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
views_ui_contextual_links_suppress_pop core/modules/views_ui/views_ui.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
views_ui_contextual_links_suppress_push core/modules/views_ui/views_ui.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
views_ui_view_preview_section_display_category_links core/modules/views_ui/views_ui.module

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

function
views_ui_view_preview_section_handler_links core/modules/views_ui/views_ui.module

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

function 1
views_ui_view_preview_section_rows_links core/modules/views_ui/views_ui.module

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

function
views_view_is_disabled core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use !$view->status() instead.

function
views_view_is_enabled core/modules/views/views.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use $view->status() instead.

function
WebDriverCurlService core/tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php

in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement, use the base class instead.

class
Zip core/lib/Drupal/Core/Archiver/Zip.php

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class 1 2
_ckeditor5_get_langcode_mapping core/modules/ckeditor5/ckeditor5.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Language\LanguageManagerInterface instead.

function
_ckeditor5_theme_css core/modules/ckeditor5/ckeditor5.module

in drupal:11.4.0 and is removed from drupal:12.0.0. No replacement is provided.

function
_comment_entity_uses_integer_id core/modules/comment/comment.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Entity\EntityTypeInterface::hasIntegerId() instead.

function
_content_translation_install_field_storage_definitions core/modules/content_translation/content_translation.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use ContentTranslationHooks::installFieldStorageDefinitions() instead.

function
_contextual_id_to_links core/modules/contextual/contextual.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contextual\ContextualLinksSerializer::idToLinks() instead.

function
_contextual_links_to_id core/modules/contextual/contextual.module

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\contextual\ContextualLinksSerializer::linksToId() instead.

function
_dblog_get_message_types core/modules/dblog/dblog.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\dblog\DbLogFilters::class)->getMessageTypes() instead.

function
_field_create_entity_from_ids core/modules/field/field.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
_filter_autop core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterAutoP::process() and no replacement is provided.

function
_filter_html_escape core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterHtmlEscape::process() and no replacement is provided.

function
_filter_html_image_secure_process core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic is included in \Drupal\filter\Plugin\Filter\FilterHtmlImageSecure::process() and no replacement is provided.

function
_filter_tips core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
_filter_url core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::process() and no replacement is provided.

function
_filter_url_escape_comments core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been split between \Drupal\filter\Plugin\Filter\FilterUrl::escapeComments() and \Drupal\filter\Plugin\Filter\FilterUrl::unescapeComments(), and no replacement is provided.

function
_filter_url_parse_email_links core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseEmailLinks() and no replacement is provided.

function
_filter_url_parse_full_links core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseFullLinks() and no replacement is provided.

function
_filter_url_parse_partial_links core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parsePartialLinks() and no replacement is provided.

function
_filter_url_trim core/modules/filter/filter.module

in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::trimUrl() and no replacement is provided.

function 3
_locale_translation_fetch_operations core/modules/locale/locale.fetch.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

function
_media_get_add_url core/modules/media/media.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
_menu_link_content_update_path_alias core/modules/menu_link_content/menu_link_content.module

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

function
_responsive_image_build_source_attributes core/modules/responsive_image/responsive_image.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::buildSourceAttributes() instead.

function
_responsive_image_image_style_url core/modules/responsive_image/responsive_image.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\responsive_image\ResponsiveImageBuilder::getImageStyleUrl() instead.

function
_system_default_theme_features core/includes/theme.inc

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Extension\ThemeSettingsProvider::DEFAULT_THEME_FEATURES instead.

function

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.