Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
drupal-check against applenews-8.x-1.x-dev (28 Mar 2019).
------ -------------------------------------------------------------------------
Line src/Controller/ApplenewsChannelController.php
------ -------------------------------------------------------------------------
62 Call to deprecated method urlInfo() of class Drupal\Core\Entity\Entity.
------ -------------------------------------------------------------------------
------ ---------------------------------------------------
Line src/Form/ApplenewsTemplateForm.php
------ ---------------------------------------------------
394 Call to deprecated function drupal_set_message().
466 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ----------------------------------------------
Line src/Form/TextStyleForm.php
------ ----------------------------------------------
277 Call to deprecated method urlInfo() of class
Drupal\Core\Config\Entity\ConfigEntityBase.
------ ----------------------------------------------
[ERROR] Found 4 errors
Comment | File | Size | Author |
---|---|---|---|
#12 | Screenshot from 2021-01-22 23-03-57.png | 165.58 KB | ankithashetty |
#12 | interdiff_3052003_11-12.txt | 1.72 KB | ankithashetty |
#12 | 3052003-12.patch | 10.92 KB | ankithashetty |
#11 | interdiff_3052003_9-11.txt | 6.23 KB | ankithashetty |
#11 | 3052003-11.patch | 9.36 KB | ankithashetty |
Issue fork applenews-3052003
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
waverate CreditAttribution: waverate commentedPatch at #2 #3030480: Replace deprecated drupal_set_message function for ApplenewsTemplateForm fixes drupal_set_message() errors but still leaves:
Comment #3
yoftahe.addweb CreditAttribution: yoftahe.addweb at AddWeb Solution Pvt. Ltd. commented@waverate, Please find updated for the same as per your above-mentioned comments, hope this will helps
Thanks
Comment #4
yoftahe.addweb CreditAttribution: yoftahe.addweb at AddWeb Solution Pvt. Ltd. commentedComment #5
waverate CreditAttribution: waverate commentedPatch at #4 applied to applenews-8.x-1.x-dev (28 Mar 2019), with #2 of #3030480: Replace deprecated drupal_set_message function for ApplenewsTemplateForm applied first, still leaves drupal-check with the following error:
Comment #6
yoftahe.addweb CreditAttribution: yoftahe.addweb at AddWeb Solution Pvt. Ltd. commented@waverate, kindly review the new patch with the changes mentioned above. Hope now it resolves all.
Thanks
Comment #7
waverate CreditAttribution: waverate commented@nilesh.addweb. That's good. Can you please roll patches at #3 and #6 together in a single patch?
Also, in your post mention it needs to be applied after patch #2 from #3030480: Replace deprecated drupal_set_message function for ApplenewsTemplateForm.
Comment #8
vijaycs85Combined #4 and #6 and added changes from #3030480: Replace deprecated drupal_set_message function for ApplenewsTemplateForm. All green locally:
Comment #9
brianfisher CreditAttribution: brianfisher at Chapter Three commentedNo need to use Drupal::service to get Filesystem, it's already referenced in __construct
Comment #10
ankithashettyAny progress on porting this module to Drupal 9? Would love to have one!
Comment #11
ankithashettyUpdated all the deprecated code in the module to make it ready for Drupal 8. Kindly review the patch.
Thank you!
Comment #12
ankithashettyAfter applying the patch, the module could be enabled on the Drupal 9 site.
On creating a new apple news template and saving it, the following error is shown.
Updating the patch accordingly... Kindly review.
Thanks!
Comment #15
m4oliveiThanks for the all the work here! I'm reviewing today, should be able to commit to the 1.x-dev branch. I opened a merge request with the patch in #12 to make review a bit easier.
Comment #16
m4oliveiPatch looks great on clean Drupal 9.x, also on Drupal 8.x. Lets commit this.
Comment #18
m4oliveiMerges to 8.x-1.x! Thanks all.
Comment #19
m4olivei