Deprecated - 8.9.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
SearchConfigurationRankings core/modules/search/src/Plugin/migrate/process/d6/SearchConfigurationRankings.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\search\Plugin\migrate\process\SearchConfigurationRankings instead.

class
SearchPageResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php

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

class
SearchTestBase core/modules/search/src/Tests/SearchTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\search\Functional\SearchTestBase instead.

class
SearchTestBase core/modules/search/tests/src/Functional/SearchTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\BrowserTestBase instead.

class
SearchTestBase::submitGetForm core/modules/search/tests/src/Functional/SearchTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\BrowserTestBase::drupalPostForm() instead.

function
search_dirty core/modules/search/search.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use custom implementation of \Drupal\search\SearchIndexInterface instead.

function 1
search_index core/modules/search/search.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::index() instead.

function 1
search_index_clear core/modules/search/search.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::clear() instead.

function 1
search_mark_for_reindex core/modules/search/search.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::markForReindex() instead.

function 1
search_update_totals core/modules/search/search.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use custom implementation of \Drupal\search\SearchIndexInterface instead.

function 1
SectionStorageBase::setSectionList core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php

in drupal:8.7.0 and is removed from drupal:9.0.0. This method should no longer be used. The section list should be derived from context. See https://www.drupal.org/node/3016262.

function
SectionStorageInterface::extractIdFromRoute core/modules/layout_builder/src/SectionStorageInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. \Drupal\layout_builder\SectionStorageInterface::deriveContextsFromRoute() should be used instead. See https://www.drupal.org/node/3016262.

function 4
SectionStorageInterface::getSectionListFromId core/modules/layout_builder/src/SectionStorageInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. The section list should be derived from context. See https://www.drupal.org/node/3016262.

function 4
SectionStorageManagerInterface::loadFromRoute core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. \Drupal\layout_builder\SectionStorageInterface::deriveContextsFromRoute() and \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load() should be used instead. See https://www.drupal.org/node/3012353.

function 1
SectionStorageManagerInterface::loadFromStorageId core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php

in drupal:8.7.0 and is removed from drupal:9.0.0. \Drupal\layout_builder\SectionStorage\SectionStorageManagerInterface::load() should be used instead. See https://www.drupal.org/node/3012353.

function 1
SelectInterface::rightJoin core/lib/Drupal/Core/Database/Query/SelectInterface.php

in drupal:8.1.0 and is removed from drupal:9.0.0. Instead, change the query to use leftJoin(). For instance: $injected_connection->query('A')->rightJoin('B') is identical to $injected_connection->query('B')->leftJoin('A'). This functionality has been deprecated because SQLite does not support it.

function 2
SelectionBase core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection

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

in drupal:8.1.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\SessionTestTrait instead.

trait
SharedTempStore core/modules/user/src/SharedTempStore.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead.

class 1
SharedTempStoreFactory core/modules/user/src/SharedTempStoreFactory.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\SharedTempStoreFactory instead.

class 1
ShortcutResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php

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

class
ShortcutSetResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ShortcutSet/ShortcutSetResourceTestBase.php

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

class
ShortcutTestBase core/modules/shortcut/src/Tests/ShortcutTestBase.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\shortcut\Functional\ShortcutTestBase.

class
shortcut_set_assign_user core/modules/shortcut/shortcut.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('shortcut_set')->assignUser().

function
shortcut_set_title_exists core/modules/shortcut/shortcut.module

in drupal:8.0.0 and is removed from drupal:9.0.0.

function
shortcut_set_unassign_user core/modules/shortcut/shortcut.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('shortcut_set')->unassignUser().

function
simpletest_classloader_register core/modules/simpletest/simpletest.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::service('test_discovery')->registerTestNamespaces() instead.

function 1
simpletest_clean_database core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanDatabase() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanDatabase() instead.

function 1
simpletest_clean_environment core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanEnvironment() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanEnvironment() instead.

function 1
simpletest_clean_results_table core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanResultsTable() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanResultsTable() instead.

function 1
simpletest_clean_temporary_directories core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanTemporaryDirectories() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories() instead.

function 1
simpletest_generate_file core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\TestFileCreationTrait::generateFile() instead.

function 1
simpletest_insert_assert core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::insertAssert() instead.

function
simpletest_last_test_get core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::lastTestGet() instead.

function
simpletest_log_read core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::logRead() instead.

function
simpletest_phpunit_command core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand() instead.

function 1
simpletest_phpunit_configuration_filepath core/modules/simpletest/simpletest.module

in drupal:8.4.0 and is removed from drupal:9.0.0. PHPUnit test runners should change directory into core/ and then run the phpunit tool. See simpletest_phpunit_run_command() for an example.

function 1
simpletest_phpunit_find_testcases core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::findTestCases() instead.

function 1
simpletest_phpunit_run_command core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runCommand() instead.

function 1
simpletest_phpunit_testcase_to_row core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::convertTestCaseToSimpletestRow() instead.

function 1
simpletest_phpunit_xml_filepath core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead.

function 2
simpletest_phpunit_xml_to_rows core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::xmlToRows() instead.

function 1
simpletest_process_phpunit_results core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::processPhpUnitResults() instead.

function 1
simpletest_run_phpunit_tests core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runTests() instead.

function 1
simpletest_summarize_phpunit_result core/modules/simpletest/simpletest.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::summarizeResults() instead.

function 1
simpletest_test_get_all core/modules/simpletest/simpletest.module

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::service('test_discovery')->getTestClasses($extension, $types) instead.

function 1
SqlContentEntityStorage::getFieldStorageDefinitions core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() instead.

function
SqlContentEntityStorage::storageDefinitionIsDeleted core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionInterface::isDeleted() instead.

function
SqlContentEntityStorageSchemaConverter core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchemaConverter.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface::updateFieldableEntityType() instead.

class 2
StatisticsTestBase core/modules/statistics/src/Tests/StatisticsTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\statistics\Functional\StatisticsTestBase instead.

class

Other projects


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