You are here

Deprecated in Drupal 8

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
SearchConfigurationRankings core/modules/search/src/Plugin/migrate/process/d6/SearchConfigurationRankings.php class in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\search\Plugin\migrate\process\SearchConfigurationRankings instead.
SearchPageResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase instead.
SearchTestBase core/modules/search/src/Tests/SearchTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\search\Functional\SearchTestBase instead.
SearchTestBase core/modules/search/tests/src/Functional/SearchTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\BrowserTestBase instead.
SearchTestBase::submitGetForm core/modules/search/tests/src/Functional/SearchTestBase.php function in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\BrowserTestBase::drupalPostForm() instead.
search_dirty core/modules/search/search.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use custom implementation of \Drupal\search\SearchIndexInterface instead. 1
search_index core/modules/search/search.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::index() instead. 1
search_index_clear core/modules/search/search.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::clear() instead. 1
search_mark_for_reindex core/modules/search/search.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\search\SearchIndex::markForReindex() instead. 1
search_update_totals core/modules/search/search.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use custom implementation of \Drupal\search\SearchIndexInterface instead. 1
SectionStorageBase::setSectionList core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php function 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.
SectionStorageInterface::extractIdFromRoute core/modules/layout_builder/src/SectionStorageInterface.php function 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. 4
SectionStorageInterface::getSectionListFromId core/modules/layout_builder/src/SectionStorageInterface.php function 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. 4
SectionStorageManagerInterface::loadFromRoute core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php function 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. 1
SectionStorageManagerInterface::loadFromStorageId core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php function 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. 1
SelectInterface::rightJoin core/lib/Drupal/Core/Database/Query/SelectInterface.php function 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. 2
SelectionBase core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php class in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection
SessionTestTrait core/modules/simpletest/src/SessionTestTrait.php trait in drupal:8.1.1 and is removed from drupal:9.0.0. Use \Drupal\Tests\SessionTestTrait instead.
SharedTempStore core/modules/user/src/SharedTempStore.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. 1
SharedTempStoreFactory core/modules/user/src/SharedTempStoreFactory.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\TempStore\SharedTempStoreFactory instead. 1
ShortcutResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\shortcut\Functional\Rest\ShortcutResourceTestBase instead.
ShortcutSetResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/ShortcutSet/ShortcutSetResourceTestBase.php class in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\shortcut\Functional\Rest\ShortcutSetResourceTestBase instead.
ShortcutTestBase core/modules/shortcut/src/Tests/ShortcutTestBase.php class in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\shortcut\Functional\ShortcutTestBase.
shortcut_set_assign_user core/modules/shortcut/shortcut.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('shortcut_set')->assignUser().
shortcut_set_title_exists core/modules/shortcut/shortcut.module function in drupal:8.0.0 and is removed from drupal:9.0.0.
shortcut_set_unassign_user core/modules/shortcut/shortcut.module function in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('shortcut_set')->unassignUser().
simpletest_classloader_register core/modules/simpletest/simpletest.module function in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::service('test_discovery')->registerTestNamespaces() instead. 1
simpletest_clean_database core/modules/simpletest/simpletest.module function 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. 1
simpletest_clean_environment core/modules/simpletest/simpletest.module function 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. 1
simpletest_clean_results_table core/modules/simpletest/simpletest.module function 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. 1
simpletest_clean_temporary_directories core/modules/simpletest/simpletest.module function 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. 1
simpletest_generate_file core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\TestFileCreationTrait::generateFile() instead. 1
simpletest_insert_assert core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::insertAssert() instead.
simpletest_last_test_get core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::lastTestGet() instead.
simpletest_log_read core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::logRead() instead.
simpletest_phpunit_command core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand() instead. 1
simpletest_phpunit_configuration_filepath core/modules/simpletest/simpletest.module function 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. 1
simpletest_phpunit_find_testcases core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::findTestCases() instead. 1
simpletest_phpunit_run_command core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runCommand() instead. 1
simpletest_phpunit_testcase_to_row core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::convertTestCaseToSimpletestRow() instead. 1
simpletest_phpunit_xml_filepath core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead. 2
simpletest_phpunit_xml_to_rows core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::xmlToRows() instead. 1
simpletest_process_phpunit_results core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::processPhpUnitResults() instead. 1
simpletest_run_phpunit_tests core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runTests() instead. 1
simpletest_summarize_phpunit_result core/modules/simpletest/simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::summarizeResults() instead. 1
simpletest_test_get_all core/modules/simpletest/simpletest.module function in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::service('test_discovery')->getTestClasses($extension, $types) instead. 1
SqlContentEntityStorage::getFieldStorageDefinitions core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php function in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() instead.
SqlContentEntityStorage::storageDefinitionIsDeleted core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php function in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionInterface::isDeleted() instead.
SqlContentEntityStorageSchemaConverter core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchemaConverter.php class in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface::updateFieldableEntityType() instead. 2
StatisticsTestBase core/modules/statistics/src/Tests/StatisticsTestBase.php class in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\statistics\Functional\StatisticsTestBase instead.

Pages

Other projects