The drupal-check tool returns next deprecated errors in the module's tests. They need to be fixed.

------ --------------------------------------------------------------------------
  Line   examples.module
 ------ --------------------------------------------------------------------------
  44     Call to deprecated function system_get_info():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         \Drupal::service('extension.list.$type')->getExtensionInfo() or
         \Drupal::service('extension.list.$type')->getAllInstalledInfo() instead.
 ------ --------------------------------------------------------------------------
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alt.local created an issue. See original summary.

alt.dev’s picture

Title: Fix Drupal 9 deprecations in the module's tests. » Fix Drupal 9 deprecations in the examples.module.
Component: Cron Example » Other
Issue summary: View changes
alt.dev’s picture

Issue tags: +Amsterdam2019
alt.dev’s picture

I have created a patch which fixes the error.

alt.dev’s picture

Status: Active » Needs review

  • valthebald committed 746b24a on 8.x-1.x authored by alt.local
    Issue #3091376 by alt.local: Fix Drupal 9 deprecations in the examples....
valthebald’s picture

Status: Needs review » Fixed

Committed to 8.x-1.x, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.