Deprecated - 8.9.x - drupal

Primary tabs

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

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal::service('statistics.storage.node')->fetchView($id) instead.

function 1
statistics_title_list core/modules/statistics/statistics.module

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\statistics\NodeStatisticsDatabaseStorage::fetchAll() instead.

function
SystemConfigFormTestBase core/modules/system/src/Tests/System/SystemConfigFormTestBase.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\KernelTests\ConfigFormTestBase instead.

class
SystemRequirements::phpVersionWithPdoDisallowMultipleStatements core/modules/system/src/SystemRequirements.php

in drupal:8.8.0 and is removed from drupal:9.0.0. All supported PHP versions support disabling multi-statement queries in MySQL.

function 1
system_get_info core/modules/system/system.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal::service('extension.list.$type')->getExtensionInfo() or \Drupal::service('extension.list.$type')->getAllInstalledInfo() instead.

function 1
system_list core/includes/module.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal::service('theme_handler')->listInfo() instead.

function 1
system_list_reset core/includes/module.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. There is no direct replacement. Call each \Drupal::service('extension.list.TYPE')->reset() as necessary.

function 1
system_rebuild_module_data core/modules/system/system.module

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal::service('extension.list.module')->getList() instead. Note: use reset() only when you really need to rescan and rebuild the list.

function 1
system_register core/includes/module.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. There is no replacement for this function. Use the following sequence of code to achieve the same functionality:

$path = \Drupal::service("extension.list.{$type}")->getPath($name);
\Drupal::service('class_loader')->addPsr4('Drupal\\' . $name . '\\', \Drupal::root() . '/' . $path . '/src');
function 1
tablesort_get_order core/includes/tablesort.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::getOrder() instead.

function 1
tablesort_get_query_parameters core/includes/tablesort.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::getQueryParameters() instead.

function 1
tablesort_get_sort core/includes/tablesort.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::getSort() instead.

function 1
tablesort_header core/includes/tablesort.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::header() instead.

function 1
tablesort_init core/includes/tablesort.inc

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::getContextFromRequest() instead.

function 1
TaxonomyTermReference core/modules/taxonomy/src/Plugin/migrate/cckfield/TaxonomyTermReference.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\Plugin\migrate\field\TaxonomyTermReference instead.

class 1
TaxonomyTestBase core/modules/taxonomy/src/Tests/TaxonomyTestBase.php

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

class
TaxonomyTestTrait core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait instead.

trait
TaxonomyTestTrait core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait instead.

trait
TaxonomyTranslationTestTrait core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait

trait
taxonomy_check_vocabulary_hierarchy core/modules/taxonomy/taxonomy.module

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

function
TAXONOMY_HIERARCHY_DISABLED core/modules/taxonomy/taxonomy.module

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_DISABLED instead.

constant
TAXONOMY_HIERARCHY_MULTIPLE core/modules/taxonomy/taxonomy.module

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_MULTIPLE instead.

constant
TAXONOMY_HIERARCHY_SINGLE core/modules/taxonomy/taxonomy.module

in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_SINGLE instead.

constant
taxonomy_term_load core/modules/taxonomy/taxonomy.module

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

function 1
taxonomy_term_load_multiple core/modules/taxonomy/taxonomy.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\Entity\Term::loadMultiple().

function 1
taxonomy_term_view core/modules/taxonomy/taxonomy.module

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

function 1
taxonomy_term_view_multiple core/modules/taxonomy/taxonomy.module

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

function 1
taxonomy_vocabulary_load core/modules/taxonomy/taxonomy.module

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

function 1
taxonomy_vocabulary_load_multiple core/modules/taxonomy/taxonomy.module

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\Entity\Vocabulary::loadMultiple().

function 1
TemporaryTableMapping core/lib/Drupal/Core/Entity/Sql/TemporaryTableMapping.php

in drupal:8.7.0 and is removed from drupal:9.0.0. Use the default table mapping with a prefix instead.

class 1
Term core/modules/taxonomy/src/Plugin/migrate/source/Term.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\Plugin\migrate\source\d6\Term or \Drupal\taxonomy\Plugin\migrate\source\d7\Term.

class
TermInterface::getVocabularyId core/modules/taxonomy/src/TermInterface.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use TermInterface::bundle() instead.

function 1
TermResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Term/TermResourceTestBase.php

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

class
TermViewBuilder core/modules/taxonomy/src/TermViewBuilder.php

in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityViewBuilder instead.

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

in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use one of the phpunit base test classes like Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.

class 2 1
TestBase::insertAssert core/modules/simpletest/src/TestBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use simpletest_insert_assert() instead.

function 1 1
TestDiscovery core/modules/simpletest/src/TestDiscovery.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDiscovery instead.

class 9
TestServiceProvider core/modules/simpletest/src/TestServiceProvider.php

in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\KernelTests\TestServiceProvider instead.

class
TextField core/modules/text/src/Plugin/migrate/cckfield/TextField.php

in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\text\Plugin\migrate\field\d6\TextField or \Drupal\text\Plugin\migrate\field\d7\TextField instead.

class 2
ThemeHandlerInterface::install core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the theme_installer service instead.

function 1
ThemeHandlerInterface::setDefault core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

in drupal:8.2.0 and is removed from drupal:9.0.0. Use the configuration system to edit the system.theme config directly.

function 1
ThemeHandlerInterface::uninstall core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the theme_installer service instead.

function 1
TimeStampItemNormalizerTrait core/modules/serialization/src/Normalizer/TimeStampItemNormalizerTrait.php

in 8.7.0, use \Drupal\serialization\Normalizer\TimestampNormalizer instead.

trait 1
toolbar_prerender_toolbar_administration_tray core/modules/toolbar/toolbar.module

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

function 1
ToolkitTestBase core/modules/system/src/Tests/Image/ToolkitTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use Drupal\FunctionalTests\Image\ToolkitTestBase instead.

class
TourResourceTestBase core/modules/rest/tests/src/Functional/EntityResource/Tour/TourResourceTestBase.php

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

class
TourTestBase core/modules/tour/src/Tests/TourTestBase.php

in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\tour\Functional\TourTestBase instead.

class
TrackerTestBase core/modules/tracker/src/Tests/Views/TrackerTestBase.php

in drupal:8.?.? and is removed from drupal:9.0.0. Use \Drupal\Tests\tracker\Functional\Views\TrackerTestBase instead.

class
TrackerTestBase core/modules/tracker/tests/src/Functional/Views/TrackerTestBase.php

in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, use Kernel tests to test tracker module views plugins integration.

class
tracker_page core/modules/tracker/tracker.pages.inc

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead.

function 1

Other projects


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