Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Deprecated - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x
Examples: "before Drupal 9", "in Drupal 8.4"
Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
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
FulfilledPromise::always vendor/react/promise/src/Internal/FulfilledPromise.php

3.0.0 Use `finally()` instead

function
FulfilledPromise::otherwise vendor/react/promise/src/Internal/FulfilledPromise.php

3.0.0 Use `catch()` instead

function
FunctionDeclarationSniff vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Functions/FunctionDeclarationSniff.php

in Coder 8.x, will be removed in Coder 9.x. MultiLineFunctionDeclarationSniff is used instead.

class
Generator::generateClassFromWsdl vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php

https://github.com/sebastianbergmann/phpunit/issues/5242

function
Generator::mockObjectForAbstractClass vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php

https://github.com/sebastianbergmann/phpunit/issues/5241

function 1
Generator::mockObjectForTrait vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php

https://github.com/sebastianbergmann/phpunit/issues/5243

function
Generator::objectForTrait vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Generator.php

https://github.com/sebastianbergmann/phpunit/issues/5244

function
Git::runCommand vendor/composer/composer/src/Composer/Util/Git.php

Use runCommands with placeholders instead of callbacks for simplicity

function 1
GitModified::getBlacklist vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php

3.9.0 Overload the `getDisallowedFiles()` method instead.

function
GitModified::getWhitelist vendor/squizlabs/php_codesniffer/src/Filters/GitModified.php

3.9.0 Overload the `getAllowedFiles()` method instead.

function
GitStaged::getBlacklist vendor/squizlabs/php_codesniffer/src/Filters/GitStaged.php

3.9.0 Overload the `getDisallowedFiles()` method instead.

function
GitStaged::getWhitelist vendor/squizlabs/php_codesniffer/src/Filters/GitStaged.php

3.9.0 Overload the `getAllowedFiles()` method instead.

function
Header::normalize vendor/guzzlehttp/psr7/src/Header.php

Use self::splitList() instead.

function
headers_from_lines vendor/guzzlehttp/guzzle/src/functions.php

headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead.

function
HttpClient vendor/php-http/httplug/src/HttpClient.php

since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/

interface 1 4
HttpClientDiscovery vendor/php-http/discovery/src/HttpClientDiscovery.php

This will be removed in 2.0. Consider using Psr18ClientDiscovery.

class
IgnoreClassForCodeCoverage vendor/phpunit/phpunit/src/Metadata/IgnoreClassForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
IgnoreClassForCodeCoverage vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreClassForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
IgnoreFunctionForCodeCoverage vendor/phpunit/phpunit/src/Metadata/IgnoreFunctionForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
IgnoreFunctionForCodeCoverage vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreFunctionForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
IgnoreMethodForCodeCoverage vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreMethodForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
IgnoreMethodForCodeCoverage vendor/phpunit/phpunit/src/Metadata/IgnoreMethodForCodeCoverage.php

https://github.com/sebastianbergmann/phpunit/issues/5513

class 1
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
Implements_::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Implements_.php

Create using static factory is deprecated, this method should not be called directly by library consumers

function
InputStream vendor/masterminds/html5/src/HTML5/Parser/InputStream.php

since 2.4, to remove in 3.0. Use a string in the scanner instead.

interface 2
InstalledVersions::getRawData vendor/composer/InstalledVersions.php

Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.

function
InstalledVersions::getRawData vendor/composer/composer/src/Composer/InstalledVersions.php

Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.

function
Installer::setIgnorePlatformRequirements vendor/composer/composer/src/Composer/Installer.php

use setPlatformRequirementFilter instead

function
Installer::setRunScripts vendor/composer/composer/src/Composer/Installer.php

Use setRunScripts(false) on the EventDispatcher instance being injected instead

function
Instantiator::SERIALIZATION_FORMAT_USE_UNSERIALIZER vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php

This constant will be private in 2.0

constant
IntegrationTestCase::getFixturesDir vendor/twig/twig/src/Test/IntegrationTestCase.php

since Twig 3.13, use getFixturesDirectory() instead.

function 1
is_host_in_noproxy vendor/guzzlehttp/guzzle/src/functions.php

is_host_in_noproxy will be removed in guzzlehttp/guzzle:8.0. Use Utils::isHostInNoProxy instead.

function
JsonFile::JSON_PRETTY_PRINT vendor/composer/composer/src/Composer/Json/JsonFile.php

Use \JSON_PRETTY_PRINT

constant
JsonFile::JSON_UNESCAPED_SLASHES vendor/composer/composer/src/Composer/Json/JsonFile.php

Use \JSON_UNESCAPED_SLASHES

constant
JsonFile::JSON_UNESCAPED_UNICODE vendor/composer/composer/src/Composer/Json/JsonFile.php

Use \JSON_UNESCAPED_UNICODE

constant
JsonFormatter vendor/composer/composer/src/Composer/Json/JsonFormatter.php

Use json_encode or JsonFile::encode() with modern JSON_* flags to configure formatting - this class will be removed in 3.0

class
json_decode vendor/guzzlehttp/guzzle/src/functions.php

json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead.

function 64
json_encode vendor/guzzlehttp/guzzle/src/functions.php

json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead.

function 76
Kernel::getAnnotatedClassesToCompile vendor/symfony/http-kernel/Kernel.php

since Symfony 7.1, to be removed in 8.0

function
Kernel::setAnnotatedClassCache vendor/symfony/http-kernel/Kernel.php

since Symfony 7.1, to be removed in 8.0

function
LazyUuidFromString::getClockSeqHiAndReserved vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function
LazyUuidFromString::getClockSeqLow vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function
LazyUuidFromString::getClockSequence vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function
LazyUuidFromString::getLeastSignificantBits vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by {

function
LazyUuidFromString::getMostSignificantBits vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by {

function
LazyUuidFromString::getNode vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function
LazyUuidFromString::getTimeHiAndVersion vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function
LazyUuidFromString::getTimeLow vendor/ramsey/uuid/src/Lazy/LazyUuidFromString.php

Use { { instance, you may call { and use the arbitrary-precision math library of your choice to convert it to a string integer.

function

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal