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
Comment | File | Size | Author |
---|---|---|---|
#2 | removed-deprecated-code.patch | 3.27 KB | Sahana _N |
Comments
Comment #2
Sahana _N CreditAttribution: Sahana _N at Specbee commentedRemoved deprecated methods please review the patch.
Comment #3
ChrisSnyderThank you Sahana _N!
Comment #5
ChrisSnyder