Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
user_role_load core/modules/user/user.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\user\Entity\Role::load().

function
user_view core/modules/user/user.module

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('user')->view() instead.

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

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getViewBuilder('user')->viewMultiple() instead.

function 1
valid_email_address core/includes/common.inc

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::service('email.validator')->isValid().

function
ViewKernelTestBase core/modules/views/src/Tests/ViewKernelTestBase.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Kernel\ViewsKernelTestBase instead.

class 1 1
ViewResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/View/ViewResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\views\Functional\Rest\ViewResourceTestBase instead.

class
views_pre_render_views_form_views_form core/modules/views/views.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\views\Form\ViewsFormMainForm::preRenderViewsForm() instead.

function 1
ViewTestBase core/modules/views/src/Tests/ViewTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Functional\ViewTestBase.

class 9 9
VocabularyInterface::getHierarchy core/modules/taxonomy/src/VocabularyInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\TermStorage::getVocabularyHierarchyType() instead.

function 1
VocabularyInterface::setHierarchy core/modules/taxonomy/src/VocabularyInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Reset the cache of the taxonomy_term storage handler instead.

function 1
VocabularyResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Vocabulary/VocabularyResourceTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\taxonomy\Functional\Rest\VocabularyResourceTestBase instead.

class
WebAssert core/modules/simpletest/src/WebAssert.php

in drupal:8.1.1 and is removed from drupal:9.0.0. This was moved to another namespace.

class
WebDriverTestBase::assertElementNotVisible core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php

in drupal:8.1.0 and is removed from drupal:9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.

function
WebDriverTestBase::assertElementVisible core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php

in drupal:8.1.0 and is removed from drupal:9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.

function
WebTestBase core/modules/simpletest/src/WebTestBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.

class 43 42
WizardTestBase core/modules/views/src/Tests/Wizard/WizardTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\views\Functional\Wizard\WizardTestBase.

class
Workspace::getCurrentUserId core/modules/workspaces/src/Entity/Workspace.php

The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0.

function
WorkspaceInterface::DEFAULT_WORKSPACE core/modules/workspaces/src/WorkspaceInterface.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.

constant
WorkspaceInterface::isDefaultWorkspace core/modules/workspaces/src/WorkspaceInterface.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace() instead.

function 1
_db_get_target core/includes/database.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. There is no replacement, this function should not be used. It was introduced in Drupal 8.8.0 only as a byproduct of the deprecation of the db_* procedural functions.

function 2
_quickedit_entity_is_latest_revision core/modules/quickedit/quickedit.module

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionableInterface::isLatestRevision() instead. As internal API, _quickedit_entity_is_latest_revision() may also be removed in a minor release.

function
_simpletest_run_tests_script_open_browser core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. This function supports the --browser option in this script. Use the --verbose option instead.

function
_system_rebuild_module_data core/modules/system/system.module

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal::service('extension.list.module')->reset()->getList() instead. Note: You probably don't need the reset() method.

function
_system_rebuild_module_data_ensure_required core/modules/system/system.module

in drupal:8.5.0 and is removed from drupal:9.0.0. This function is no longer used in Drupal core.

function
_toolbar_do_get_rendered_subtrees core/modules/toolbar/toolbar.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\toolbar\Controller\ToolbarController::preRenderGetRenderedSubtrees() instead.

function 1
_tracker_myrecent_access core/modules/tracker/tracker.module

in drupal:8.4.0 and is removed from drupal:9.0.0. As internal API, _tracker_user_access() may also be removed in a minor release.

function
_tracker_user_access core/modules/tracker/tracker.module

in drupal:8.4.0 and is removed from drupal:9.0.0. As internal API, _tracker_user_access() may also be removed in a minor release.

function
_update_equivalent_security_releases core/modules/update/update.module

in drupal:8.6.0 and is removed from drupal:9.0.0. Use the 'Insecure' release type tag in update XML provided by Drupal.org to determine if releases are insecure.

function

Other projects


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