Deprecated - 10.3.x - drupal

Primary tabs

Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
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
FileUploadHandler::loadByUri core/modules/file/src/Upload/FileUploadHandler.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\FileRepositoryInterface::loadByUri().

function
FileUploadResource::BYTES_TO_READ core/modules/file/src/Plugin/rest/resource/FileUploadResource.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
FileUploadResource::getUploadLocation core/modules/file/src/Plugin/rest/resource/FileUploadResource.php

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

function
FileUploadResource::prepareFilename core/modules/file/src/Plugin/rest/resource/FileUploadResource.php

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

function
FileUploadResource::REQUEST_HEADER_FILENAME_REGEX core/modules/file/src/Plugin/rest/resource/FileUploadResource.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
FileUploadResource::streamUploadData core/modules/file/src/Plugin/rest/resource/FileUploadResource.php

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

function
FileUploadResource::validateAndParseContentDispositionHeader core/modules/file/src/Plugin/rest/resource/FileUploadResource.php

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

function
file_icon_class core/modules/file/file.module

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\file\IconMimeTypes::getIconClass() instead.

function 1
file_progress_implementation core/modules/file/file.module

in drupal:10.3.0 and is removed from drupal:11.0.0. Use extension_loaded('uploadprogress') instead.

function 1
file_validate core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 2
file_validate_extensions core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 2
file_validate_image_resolution core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 1
file_validate_is_image core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 1
file_validate_name_length core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 1
file_validate_size core/modules/file/file.module

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function 1
FormAjaxSubscriber::formatSize core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create() instead.

function
format_size core/includes/common.inc

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create($size, $langcode) instead.

function 3
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
ForumVocabulary core/modules/taxonomy/src/Plugin/migrate/process/ForumVocabulary.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\forum\Plugin\migrate\process\ForumVocabulary instead.

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
GDToolkit::getResource core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\system\Plugin\ImageToolkit\GDToolkit::getImage() instead.

function
GDToolkit::setResource core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\system\Plugin\ImageToolkit\GDToolkit::setImage() instead.

function
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
hook_file_validate core/modules/file/file.api.php

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

function
IndexTidDepth::$termStorage core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php

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

property
Insert core/lib/Drupal/Core/Database/Driver/sqlite/Insert.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.

class 1
Insert core/lib/Drupal/Core/Database/Driver/mysql/Insert.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module.

class 1
Insert core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php

in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module.

class 1
Inspector::assertTraversable core/lib/Drupal/Component/Assertion/Inspector.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use is_iterable() instead.

function 1
JsCollectionOptimizer core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Instead use \Drupal\Core\Asset\JsCollectionOptimizerLazy.

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
KernelTestBase::stop core/tests/Drupal/KernelTests/KernelTestBase.php

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

function
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
LinkGeneratorInterface::generateFromLink core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Utility\LinkGeneratorInterface::generate() instead.

function
Locale core/modules/locale/src/Locale.php

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

class 1
Locale::config core/modules/locale/src/Locale.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal::service('locale.config_manager') instead.

function 1
Log::findCaller core/lib/Drupal/Core/Database/Log.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use Connection::findCallerFromDebugBacktrace().

function 1
Log::getDebugBacktrace core/lib/Drupal/Core/Database/Log.php

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

function 1
Log::log core/lib/Drupal/Core/Database/Log.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use ::logFromEvent().

function
Log::removeDatabaseEntries core/lib/Drupal/Core/Database/Log.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use Connection::removeDatabaseEntriesFromDebugBacktrace().

function 1
LoggedStatementsTrait core/modules/system/tests/modules/database_statement_monitoring_test/src/LoggedStatementsTrait.php

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

trait 3
LoggerChannelFactory::setContainer core/lib/Drupal/Core/Logger/LoggerChannelFactory.php

in drupal:10.3.0 and is removed from drupal:11.0.0. Use dependency injection instead.

function
MachineNameController core/modules/system/src/MachineNameController.php

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

class 1
MetadataBubblingUrlGenerator::getRouteDebugMessage core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Use the route name instead.

function
MetadataBubblingUrlGenerator::supports core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php

in drupal:10.1.0 and is removed from drupal:11.0.0. Only string route names are supported.

function

Other projects


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