Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
Ajax core/lib/Drupal/Core/Render/Element/Ajax.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Return an \Drupal\Core\Ajax\AjaxResponse instead.

class
AliasManager::pathAliasWhitelistRebuild core/modules/path_alias/src/AliasManager.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasManager::pathAliasPrefixListRebuild instead.

function
AliasWhitelist core/modules/path_alias/src/AliasWhitelist.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixList instead.

class
AliasWhitelistInterface core/modules/path_alias/src/AliasWhitelistInterface.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\path_alias\AliasPrefixListInterface instead.

interface
BookTestTrait::generateOutlinePattern core/modules/book/tests/src/Functional/BookTestTrait.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use methods from \Drupal\Tests\WebAssert instead.

function
BrowserMissingDependentModuleMethodTest core/tests/fixtures/BrowserMissingDependentModuleMethodTest.php

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

class
BrowserMissingDependentModuleTest core/tests/fixtures/BrowserMissingDependentModuleTest.php

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

class
BuildTestSuite core/tests/TestSuites/BuildTestSuite.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
CachedDiscoveryClearer::addCachedDiscovery core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Pass the full set of services to the constructor instead.

function
CachedDiscoveryClearer::$legacyCachedDiscoveries core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Pass the full set of services to the constructor instead.

property
CacheDecoratorInterface core/lib/Drupal/Core/CacheDecorator/CacheDecoratorInterface.php

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

interface
CategorizingPluginManagerTrait::getModuleHandler core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php

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

function
DependencySerializationTraitPass core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php

in drupal:9.5.0 and is removed from drupal:11.0.0. The _serviceId property is no longer part of the container. Use \Drupal\Core\DrupalKernelInterface::getServiceIdMapping() instead.

class
deprecation_test_function core/modules/system/tests/modules/deprecation_test/deprecation_test.module

in drupal:8.4.0 and is removed from drupal:9.0.0. This is the deprecation message for deprecated_test_function().

function 4
EntityPermissionsForm::access core/modules/user/src/Form/EntityPermissionsForm.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use a permissions check in the route definition instead.

function
EntityPermissionsRouteProviderWithCheck core/modules/user/src/Entity/EntityPermissionsRouteProviderWithCheck.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use EntityPermissionsRouteProvider instead.

class 1
EntityReferenceTestTrait core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.

trait
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php

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

constant
FileSystemInterface::EXISTS_ERROR core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Error instead.

constant 1
FileSystemInterface::EXISTS_RENAME core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Rename instead.

constant 5
FileSystemInterface::EXISTS_REPLACE core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\FileExists::Replace instead.

constant
FormElement core/lib/Drupal/Core/Render/Element/FormElement.php

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

class 1 1
FunctionalJavascriptTestSuite core/tests/TestSuites/FunctionalJavascriptTestSuite.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
FunctionalTestSuite core/tests/TestSuites/FunctionalTestSuite.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
Handle core/lib/Drupal/Component/Assertion/Handle.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use assert_options(ASSERT_EXCEPTION, TRUE).

class
InstallerExistingConfigTestBase core/tests/Drupal/FunctionalTests/Installer/InstallerExistingConfigTestBase.php

in drupal:10.4.0 and is removed from drupal:12.0.0. Use \Drupal\FunctionalTests\Installer\InstallerConfigDirectoryTestBase instead.

class
KernelDestructionSubscriber core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php

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

class
KernelMissingDependentModuleMethodTest core/tests/fixtures/KernelMissingDependentModuleMethodTest.php

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

class
KernelMissingDependentModuleTest core/tests/fixtures/KernelMissingDependentModuleTest.php

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

class
KernelTestSuite core/tests/TestSuites/KernelTestSuite.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
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::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
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

Other projects


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