Deprecated - 11.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
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
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::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
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_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
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 1
locale_config_batch_refresh_name core/modules/locale/locale.bulk.inc

in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_config_translations($names, $langcodes, $context) instead.

function 1
locale_config_batch_set_config_langcodes core/modules/locale/locale.bulk.inc

in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes(&$context) instead.

function 1
LOCALE_TRANSLATION_DEFAULT_SERVER_PATTERN core/modules/locale/locale.module

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::TRANSLATION_DEFAULT_SERVER_PATTERN instead.

constant
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
MenuLinkAdd core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Menu\LocalActionWithDestination instead.

class 1
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
MimeTypeMap::getMapping core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement for this method.

function
MimeTypeMap::setMapping core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement for this method.

function
Module core/lib/Drupal/Core/Updater/Module.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
ModuleHandler::add core/lib/Drupal/Core/Extension/ModuleHandler.php

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

function 2
ModuleHandlerInterface::addModule core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

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

function 1
ModuleHandlerInterface::addProfile core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php

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

function 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

Other projects


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