Deprecated - 11.x - drupal

Primary tabs

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

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
DRUPAL_REQUIRED core/modules/system/system.module

in drupal:11.3.0 and is removed from drupal:13.0.0. Instead, use the enums provided by the relevant modules.

constant
drupal_requirements_severity core/includes/install.inc

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Extension\Requirement\RequirementSeverity::getMaxSeverity() instead.

function 1
editor_load core/modules/editor/editor.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::entityTypeManager()->getStorage('editor')->load($format_id) instead.

function
EmptySource core/modules/migrate_drupal/src/Plugin/migrate/source/EmptySource.php

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

class 1 1
EntityCacheTagsTestBase::getRenderCacheBackend core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use ::getRenderVariationCache() instead, which is inherited from CacheTestTrait.

function
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
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
FieldType core/modules/field/src/Plugin/migrate/process/FieldType.php

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

class
FileDeprecatedTestThemeHooks::fileMimetypeMappingAlter core/modules/file/tests/file_deprecated_test/src/Hook/FileDeprecatedTestThemeHooks.php

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
FileSystemInterface::basename core/lib/Drupal/Core/File/FileSystemInterface.php

in drupal:11.3.0 and is removed from drupal:13.0.0. Use PHP native basename() instead.

function 1
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
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 4
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_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
file_system_settings_submit core/modules/file/file.module

in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\file\Hook\FileHooks::settingsSubmit() 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
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_ranking core/modules/node/node.api.php

in drupal:11.3.0 and is removed from drupal:12.0.0. Use hook_node_search_ranking() instead.

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
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
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 1
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

Other projects


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