amp 3.x-dev Drupal 10 deprecation details

Name and release Project type Usage count Top X project by usage Maintainers
amp 3.x-dev Module 1629 1000 KarenS, m4olivei, marcelovani, moshe weitzman, mtift, quicksketch, RainbowArray, rudygalfi, sidharth_k
Status Next step Instructions
Fix deprecation errors found Run Rector to fix some errors Some of the errors found are covered by drupal-rector automation (thanks to Palantir.net funding), which should be used to speed up resolving them. Check out the Project Update Bot patch in the issue queue. Get the automated fix committed first and resolve the manual problems afterwards.
Filter errors
Occurrence in project Sort ascending All occurrences Affected projects Category Error
4 350 237 Info.yml or composer.json Value of core_version_requirement: ^8.7.7 || ^9 is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.
1 1658 796 Drupal API, rector covered Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​Extension​\​ExtensionPathResolver::getPath() instead.
1 914 492 Drupal API, rector covered Call to deprecated function file_create_url(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use the appropriate method on ​\​Drupal​\​Core​\​File​\​FileUrlGeneratorInterface instead.
1 1417 170 Drupal API, rector covered Call to deprecated method assertText() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use - $this->assertSession()->responseContains() for non-HTML responses, like XML or Json. - $this->assertSession()->pageTextContains() for HTML responses. Unlike the deprecated assertText(), the passed text should be HTML decoded, exactly as a human sees it in the browser.
1 227 136 Drupal API, rector covered Call to deprecated function file_url_transform_relative(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​File​\​FileUrlGenerator::transformRelative() instead.
1 1 1 Symfony API Parameter $event of method Drupal​\​amp​\​EventSubscriber​\​AmpEventSubscriber::onView() has typehint with deprecated class Symfony​\​Component​\​HttpKernel​\​Event​\​GetResponseForControllerResultEvent: since Symfony 4.3, use ViewEvent instead
1 1 1 Twig API Using an "if" condition on "for" tag in "modules/contrib/amp/templates/amp-pixel.html.twig" at line 18 is deprecated since Twig 2.10.0, use a "filter" filter or an "if" condition inside the "for" body instead (if your condition depends on a variable updated inside the loop). See https://drupal.org/node/3071078.


Results are from dataset #142 from 2022-08-07T12:03. Report is ran by the Drupal Association regularly.