Deprecated - 10.3.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
MigrateExecutable::formatSize core/modules/migrate/src/MigrateExecutable.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create($size, $langcode) instead.

function
MigrateSkipProcessException core/modules/migrate/src/MigrateSkipProcessException.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Return FALSE from a process plugin's isPipelineStopped() method to stop further processing on a pipeline.

class 1
Migration::$trackLastImported core/modules/migrate/src/Plugin/Migration.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

property
MigrationInterface::getTrackLastImported core/modules/migrate/src/Plugin/MigrationInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
MigrationInterface::isTrackLastImported core/modules/migrate/src/Plugin/MigrationInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
MigrationInterface::setTrackLastImported core/modules/migrate/src/Plugin/MigrationInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 1
Module::getSchemaUpdates core/lib/Drupal/Core/Updater/Module.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::getAvailableUpdates() instead.

function
ModuleHandlerInterface::getName core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal::service('extension.list.module')->getName($module) instead.

function
module_load_include core/includes/module.inc

in drupal:9.4.0 and is removed from drupal:11.0.0. Use \Drupal::moduleHandler()->loadInclude($module, $type, $name = NULL). Note that including code from uninstalled extensions is no longer supported.

function 1
node_get_recent core/modules/node/node.module

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal::entityQuery() instead.

function
node_revision_delete core/modules/node/node.module

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision instead.

function 1
node_revision_load core/modules/node/node.module

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.

function 1
node_type_update_nodes core/modules/node/node.module

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::updateType instead.

function 1
PermissionsHashGenerator::doGenerate core/lib/Drupal/Core/Session/PermissionsHashGenerator.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement.

function
PhpassHashedPassword core/lib/Drupal/Core/Password/PhpassHashedPassword.php

in drupal:10.1.0 and is removed from drupal:11.0.0. The password compatibility service has been moved to the phpass module. Use \Drupal\phpass\Password\PhpassHashedPassword instead.

class 1
PhpassHashedPasswordBase::$countLog2 core/lib/Drupal/Core/Password/PhpassHashedPasswordBase.php

in drupal:10.3.0 and is removed from drupal:11.0.0. No replacement.

property
PhpassHashedPasswordBase::generateSalt core/lib/Drupal/Core/Password/PhpassHashedPasswordBase.php

in drupal:10.3.0 and is removed from drupal:11.0.0. No replacement.

function 1
PhpStorageInterface::writeable core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

function 2
PluginHelper core/lib/Drupal/Component/Plugin/PluginHelper.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Instead, use instanceof() to check for \Drupal\Component\Plugin\ConfigurableInterface.

class 1
Psr7RequestValueResolver::supports core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

function
RandomGeneratorTrait::randomStringValidate core/tests/Drupal/Tests/RandomGeneratorTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\TestTools\Random::stringValidate() instead.

function
RecursiveExtensionFilterIterator core/lib/Drupal/Core/Extension/Discovery/RecursiveExtensionFilterIterator.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Extension\Discovery\RecursiveExtensionFilterCallback instead.

class 1
RenderElement core/lib/Drupal/Core/Render/Element/RenderElement.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase instead.

class 2 2
RendererInterface::renderPlain core/lib/Drupal/Core/Render/RendererInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.

function
RequestStack core/lib/Drupal/Core/Http/RequestStack.php

in drupal:10.0.0 and is removed from drupal:11.0.0. There is no replacement.

class 1
REQUEST_TIME core/includes/bootstrap.inc

in drupal:8.3.0 and is removed from drupal:11.0.0. Use \Drupal::time()->getRequestTime();

constant
RouteMatchValueResolver::supports core/lib/Drupal/Core/Controller/ArgumentResolver/RouteMatchValueResolver.php

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

function
Router::addDeprecatedRouteEnhancer core/lib/Drupal/Core/Routing/Router.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use route_enhancer instead.

function
Router::addDeprecatedRouteFilter core/lib/Drupal/Core/Routing/Router.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use route_filter instead.

function
Schema core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.

class 1
Schema core/lib/Drupal/Core/Database/Driver/mysql/Schema.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module.

class 1
Schema core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module.

class 1
ScrollTopCommand core/modules/views/src/Ajax/ScrollTopCommand.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Ajax\ScrollTopCommand

class
Select core/lib/Drupal/Core/Database/Driver/sqlite/Select.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.

class 1
Select core/lib/Drupal/Core/Database/Driver/pgsql/Select.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module.

class 1
ServiceIdHashTrait core/lib/Drupal/Component/DependencyInjection/ServiceIdHashTrait.php

in drupal:9.5.1 and is removed from drupal:11.0.0. Use the 'Drupal\Component\DependencyInjection\ReverseContainer' service instead.

trait 1
shortcut_current_displayed_set core/modules/shortcut/shortcut.module

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\shortcut\ShortcutSetStorageInterface::getDisplayedToUser() instead.

function
shortcut_default_set core/modules/shortcut/shortcut.module

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\shortcut\ShortcutSetStorageInterface::getDefaultSet() instead.

function
Sql::getMigrationPluginManager core/modules/migrate/src/Plugin/migrate/id_map/Sql.php

in drupal:9.5.0 and is removed from drupal:11.0.0. Use $this->migrationPluginManager instead.

function 1 1
Statement core/lib/Drupal/Core/Database/Driver/sqlite/Statement.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.

class 1
StatementPrefetch core/lib/Drupal/Core/Database/StatementPrefetch.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Database\StatementPrefetchIterator instead.

class 1
StatementPrefetchIterator::throwPDOException core/lib/Drupal/Core/Database/StatementPrefetchIterator.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement.

function
StatementWrapper core/lib/Drupal/Core/Database/StatementWrapper.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Database\StatementWrapperIterator instead.

class 2
system_get_module_admin_tasks core/modules/system/system.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'system.module_admin_links_helper' service with the getModuleAdminLinks() method and 'user.module_permissions_link_helper' service with the ::getModulePermissionsLink() method instead.

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

in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.

function 2
system_time_zones core/modules/system/system.module

in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsList() or \DateTimeZone::listIdentifiers() instead.

function 1
Tasks core/modules/system/tests/modules/database_statement_monitoring_test/src/sqlite/Install/Tasks.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class
Tasks core/modules/system/tests/modules/database_statement_monitoring_test/src/mysql/Install/Tasks.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class
Tasks core/modules/system/tests/modules/database_statement_monitoring_test/src/pgsql/Install/Tasks.php

in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.

class
Tasks core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.

class 1

Other projects


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