Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
LayoutBuilderDisableInteractionsTest::movePointerTo core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use $this->getSession()->getDriver()->mouseOver() instead.

function
LibraryDiscovery core/lib/Drupal/Core/Asset/LibraryDiscovery.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Asset\LibraryDiscoveryCollector instead.

class
LibraryDiscoveryCollector::clearCachedDefinitions core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector::clear() instead.

function
LibraryDiscoveryInterface::clearCachedDefinitions core/lib/Drupal/Core/Asset/LibraryDiscoveryInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use LibraryDiscoveryCollector::clear() instead.

function 2
MatchingRouteNotFoundException core/lib/Drupal/Core/Routing/MatchingRouteNotFoundException.php

in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement.

class
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
ModuleHandlerInterface::getHookInfo core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Not needed any more.

function 1
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 1
ModuleHandlerInterface::writeCache core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Not needed any more.

function 1
ModuleInstallerInterface::addUninstallValidator core/lib/Drupal/Core/Extension/ModuleInstallerInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Inject the uninstall validators into the constructor instead.

function 2
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
PluginBase::isConfigurable core/lib/Drupal/Component/Plugin/PluginBase.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use instanceof to check if the plugin implements \Drupal\Component\Plugin\ConfigurableInterface instead.

function
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
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
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 3 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 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
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
TemporaryJsonapiFileFieldUploader::BYTES_TO_READ core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\InputStreamFileWriterInterface::DEFAULT_BYTES_TO_READ instead.

constant
TemporaryJsonapiFileFieldUploader::REQUEST_HEADER_FILENAME_REGEX core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\ContentDispositionFilenameParser::REQUEST_HEADER_FILENAME_REGEX instead.

constant
TemporaryJsonapiFileFieldUploader::validateAndParseContentDispositionHeader core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\Upload\ContentDispositionFilenameParser::parseFilename() instead.

function
TestSuiteBase core/tests/TestSuites/TestSuiteBase.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10.

class 5
ThemeExtensionList::getBaseThemes core/lib/Drupal/Core/Extension/ThemeExtensionList.php

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

function
ThemeHandlerInterface::getBaseThemes core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php

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

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

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal::service('extension.list.theme')->reset()->getList() instead.

function 1
TourTipPluginInterface core/modules/tour/src/TourTipPluginInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Implements TipPluginInterface instead.

interface 1
TranslationWrapper core/lib/Drupal/Core/StringTranslation/TranslationWrapper.php

in drupal:8.0.0 and is removed from drupal:11.0.0. Use the \Drupal\Core\StringTranslation\TranslatableMarkup class instead.

class 1
UnitTestSuite core/tests/TestSuites/UnitTestSuite.php

in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement and test discovery will be handled differently in PHPUnit 10.

class
UpdateManagerAccessCheck core/modules/update/src/Access/UpdateManagerAccessCheck.php

in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement.

class
UpdaterInterface::postInstall core/lib/Drupal/Core/Updater/UpdaterInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement.

function
UserAuthenticationController::userIsBlocked core/modules/user/src/Controller/UserAuthenticationController.php

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

function
user_is_blocked core/modules/user/user.module

in drupal:11.0.0 and is removed from drupal:12.0.0. Use Drupal\user\UserInterface::isBlocked() instead.

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

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\user\UserNameValidator::validateName() instead.

function 1
WebDriverCurlService core/tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php

in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement, use the base class instead.

class
YamlSymfony core/lib/Drupal/Component/Serialization/YamlSymfony.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Component\Serialization\Yaml instead.

class 1

Other projects


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