Deprecated - main - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
UserSearch core/modules/user/src/Plugin/Search/UserSearch.php

in drupal:11.5.0 and is removed from drupal:12.0.0. Instead, use \Drupal\search_user\Plugin\Search\SearchUser.

class
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_cancel core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal::service(AccountCancellation::class)->cancel() instead.

function
user_cancel_methods core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\AccountCancellation::cancelMethods() instead.

function
user_cancel_url core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateCancelConfirmUrl() instead.

function
user_cookie_delete core/modules/user/user.module

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

function
user_cookie_save core/modules/user/user.module

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

function
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
user_login_finalize core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\LoginFinalizer::finalizeLogin() instead.

function 1
user_logout core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\LogoutFinalizer::finalizeLogout() instead.

function 1
user_mail_tokens core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::tokens() instead.

function
user_pass_rehash core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateHmac() instead.

function 1
user_pass_reset_url core/modules/user/user.module

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\user\OneTimeAuthentication::generateOneTimeLoginUrl() instead.

function
user_picture_enabled core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement, check the definition directly.

function
user_role_change_permissions core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::changePermissions() instead.

function
user_role_grant_permissions core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::grantPermissions() instead.

function 5
user_role_revoke_permissions core/modules/user/user.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Use \Drupal\user\RoleInterface::revokePermissions() instead.

function 3
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_invalidate_cache core/modules/views/views.module

in drupal:11.5.0 and is removed from drupal:13.0.0. Instead, use \Drupal\views\Views::invalidateCache() for cache invalidation, and call the router.builder and views.route_subscriber services directly to require route rebuilding.

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_add_ajax_trigger core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the protected method \Drupal\views\ViewsFormAjaxHelperTrait::addAjaxTrigger().

function
views_ui_add_ajax_wrapper core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the addAjaxWrapper() method.

function
views_ui_add_limited_validation core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the addLimitedValidation() method.

function
views_ui_ajax_update_form core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the ajaxUpdateForm() method.

function
views_ui_build_form_url core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the buildFormUrl() method.

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_form_button_was_clicked core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the formButtonWasClicked() method.

function
views_ui_nojs_submit core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the noJsSubmit() method.

function
views_ui_standard_display_dropdown core/modules/views_ui/admin.inc

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no public replacement for this function. Form classes can use the \Drupal\views\ViewsFormHelperTrait trait and call the standardDisplayDropdown() method.

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

Other projects


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