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
LazyUuidFromString::getTimeMid 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::getTimestamp 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
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
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
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
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
MessageFactoryDiscovery vendor/php-http/discovery/src/MessageFactoryDiscovery.php

This will be removed in 2.0. Consider using Psr17FactoryDiscovery.

class
MetadataCollection::isIgnoreClassForCodeCoverage vendor/phpunit/phpunit/src/Metadata/MetadataCollection.php

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

function
MetadataCollection::isIgnoreFunctionForCodeCoverage vendor/phpunit/phpunit/src/Metadata/MetadataCollection.php

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

function
MetadataCollection::isIgnoreMethodForCodeCoverage vendor/phpunit/phpunit/src/Metadata/MetadataCollection.php

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

function
MetadataMinifier vendor/composer/composer/src/Composer/Util/MetadataMinifier.php

Use Composer\MetadataMinifier\MetadataMinifier instead

class
Method::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php

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

function
Method::getArguments vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php

Method deprecated, use {

function
MethodNode::getReturnType vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php

use getReturnTypeNode instead

function
MethodNode::hasNullableReturnType vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php

use getReturnTypeNode instead

function
MethodNode::hasReturnType vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php

use getReturnTypeNode instead

function
MethodNode::setNullableReturnType vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php

use setReturnTypeNode instead

function
MethodNode::setReturnType vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php

use setReturnTypeNode instead

function
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
Mixin::allIsTraversable vendor/webmozart/assert/src/Mixin.php

use "isIterable" or "isInstanceOf" instead

function
Mixin::allNullOrIsTraversable vendor/webmozart/assert/src/Mixin.php

use "isIterable" or "isInstanceOf" instead

function
Mixin::nullOrIsTraversable vendor/webmozart/assert/src/Mixin.php

use "isIterable" or "isInstanceOf" instead

function
MockBuilder::addMethods vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::allowMockingUnknownTypes vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::disableArgumentCloning vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::disableAutoload vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::disableProxyingToOriginalMethods vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::disallowMockingUnknownTypes vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::enableArgumentCloning vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::enableAutoload vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::enableProxyingToOriginalMethods vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::getMockForAbstractClass vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::getMockForTrait vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockBuilder::setProxyTarget vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php

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

function
MockTrait vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockTrait.php

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

class
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
NameExpression::isSimple vendor/twig/twig/src/Node/Expression/NameExpression.php

since Twig 3.11 (to be removed in 4.0)

function
NameExpression::isSpecial vendor/twig/twig/src/Node/Expression/NameExpression.php

since Twig 3.11 (to be removed in 4.0)

function 1
NativeSessionStorage::__construct vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php

since Symfony 7.2, to be removed in 8.0) sid_bits_per_character, "5" (@deprecated since Symfony 7.2, to be removed in 8.0) trans_sid_hosts, $_SERVER['HTTP_HOST'] (deprecated since Symfony 7.2, to be removed in Symfony 8.0) trans_sid_tags, "a=href,area=href,frame=src,form=" (deprecated since Symfony 7.2, to be removed in Symfony 8.0)

function 2 2
Node::getLine vendor/nikic/php-parser/lib/PhpParser/Node.php

Use getStartLine() instead

function 1
NodeProviderCollection vendor/ramsey/uuid/src/Provider/Node/NodeProviderCollection.php

this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from a pre-`phpstan/phpstan` and pre-`vimeo/psalm` ecosystem, in which type safety had to be mostly enforced at runtime: that is no longer necessary, now that you can safely verify your code to be correct, and use more generic types like `iterable<T>` instead.

class
NodeTestCase::getAttributeGetter vendor/twig/twig/src/Test/NodeTestCase.php

since Twig 3.13, use createAttributeGetter() instead.

function
NodeTestCase::getVariableGetter vendor/twig/twig/src/Test/NodeTestCase.php

since Twig 3.13, use createVariableGetter() instead.

function
NodeTraverser::DONT_TRAVERSE_CHILDREN vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php

Use NodeVisitor::DONT_TRAVERSE_CHILDREN instead.

constant 1
NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php

Use NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN instead.

constant

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