Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
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
EntityViewsData::$fieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

property
EntityViewsData::getFieldStorageDefinitions core/modules/views/src/EntityViewsData.php

in drupal:11.2.0 and is removed from drupal:12.0.0. No replacement is provided.

function 1
entity_test_create_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::createBundle() instead.

function
entity_test_delete_bundle core/modules/system/tests/modules/entity_test/entity_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.

function
Error::currentErrorHandler core/lib/Drupal/Core/Utility/Error.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use get_error_handler() instead.

function
ExtensionDiscovery::$fileCache core/lib/Drupal/Core/Extension/ExtensionDiscovery.php

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

property
ExtensionMimeTypeGuesser::$defaultMapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a MimeTypeMapInterface $map to the constructor instead.

property
ExtensionMimeTypeGuesser::$mapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a MimeTypeMapInterface $map to the constructor instead.

property
ExtensionMimeTypeGuesser::setMapping core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\File\MimeType\MimeTypeMapInterface::addMapping() instead.

function
Fieldgroup core/lib/Drupal/Core/Render/Element/Fieldgroup.php

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

class
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
FileTransfer core/lib/Drupal/Core/FileTransfer/FileTransfer.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class 4 2
FileTransferAuthorizeForm core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class
FileTransferException core/lib/Drupal/Core/FileTransfer/FileTransferException.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class 2
file_deprecated_test_file_mimetype_mapping_alter core/modules/file/tests/file_deprecated_test/file_deprecated_test.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Kept only for BC test coverage, see \Drupal\KernelTests\Core\File\MimeTypeLegacyTest.

function
file_get_content_headers core/modules/file/file.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use Drupal\file\Entity\FileInterface::getDownloadHeaders() instead.

function
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
FTP core/lib/Drupal/Core/FileTransfer/FTP.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class 1
FTPExtension core/lib/Drupal/Core/FileTransfer/FTPExtension.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class
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
HandlerBase::defineExtraOptions core/modules/views/src/Plugin/views/HandlerBase.php

in drupal:11.2.0 and is removed from drupal:12.0.0. This method is no longer used by Drupal core. There is no replacement.

function
hook_filetransfer_info core/lib/Drupal/Core/File/file.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

function
hook_filetransfer_info_alter core/lib/Drupal/Core/File/file.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

function
hook_file_mimetype_mapping_alter core/lib/Drupal/Core/File/file.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Create a \Drupal\Core\File\Event\MimeTypeMapLoadedEvent subscriber instead.

It is used to allow modules to add to or modify the default mapping of MIME type to file extensions.

function
hook_updater_info core/lib/Drupal/Core/Extension/module.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

function
hook_updater_info_alter core/lib/Drupal/Core/Extension/module.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

function
hook_verify_update_archive core/modules/update/update.api.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

function
I18nQueryTrait core/modules/content_translation/src/Plugin/migrate/source/I18nQueryTrait.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\migrate_drupal\Plugin\migrate\source\I18nQueryTrait instead.

trait
image_filter_keyword core/modules/image/image.module

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Component\Utility\Image::getKeywordOffset() instead.

function 1
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
JSONAPI_FILTER_AMONG_ALL core/modules/jsonapi/jsonapi.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ALL instead.

constant
JSONAPI_FILTER_AMONG_ENABLED core/modules/jsonapi/jsonapi.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_ENABLED instead.

constant
JSONAPI_FILTER_AMONG_OWN core/modules/jsonapi/jsonapi.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_OWN instead.

constant
JSONAPI_FILTER_AMONG_PUBLISHED core/modules/jsonapi/jsonapi.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Use \Drupal\jsonapi\JsonApiFilter::AMONG_PUBLISHED instead.

constant
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
Local core/lib/Drupal/Core/FileTransfer/Local.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

class 1 3

Other projects


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