When I check the module with the "drupal-check" command I found deprecated methods.

26/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ -------------------------------------------------------------------------------
Line src/Controller/SitewideAlertController.php
------ -------------------------------------------------------------------------------
137 Call to deprecated method l() of class Drupal\Core\Controller\ControllerBase:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
143 Call to deprecated method link() of class Drupal\Core\Entity\EntityInterface:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Use \Drupal\Core\EntityInterface::toLink()->toString() instead.
------ -------------------------------------------------------------------------------

------ -------------------------------------------------------
Line src/Form/SitewideAlertRevisionDeleteForm.php
------ -------------------------------------------------------
77 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
112 Call to deprecated function format_date():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal::service('date.formatter')->format().
------ -------------------------------------------------------

[ERROR] Found 4 errors

CommentFileSizeAuthor
#2 removed-deprecated-code.patch3.27 KBSahana _N
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sahana _N created an issue. See original summary.

Sahana _N’s picture

Status: Active » Needs review
FileSize
3.27 KB

Removed deprecated methods please review the patch.

ChrisSnyder’s picture

Status: Needs review » Reviewed & tested by the community

Thank you Sahana _N!

ChrisSnyder’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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