Closed (fixed)
Project:
Simplenews
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
20 May 2019 at 17:45 UTC
Updated:
1 Jul 2019 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Remove these function and all calls to them within the module. Replacement is Subscriber::load() and related functions.
Fix on 8.x-2.x so can just delete without needing to bother with deprecation.
Full list of functions to remove:
Comments
Comment #2
adamps commentedComment #3
adamps commentedComment #4
adamps commentedComment #5
w.drupal commentedComment #6
w.drupal commentedComment #7
w.drupal commentedComment #8
w.drupal commentedComment #9
w.drupal commented@AdamPS please review
Comment #10
adamps commentedGreat thanks. I am travelling now, so will review late next week.
Comment #11
adamps commentedMany thanks w@drupal it is a good patch.
Here are my comments:
1. In
simplenews_newsletter_get_visible(), don't need$newsletters =2. Everywhere that calls
loadMultiple(): better to useNewsletter::loadMultiple();(and same for Subscriber). instead of3. Sorry this is my fault. The code to replace
simplenews_subscriber_load_by_mail()and simplenews_subscriber_load_by_uid() is more complex that I realised, it's not just one line. So I think we do still need a function for it, but we need to do it in the D8 way. I suggestSubscriber::loadByMail()andSubscriber::loadByUid().Comment #12
w.drupal commented@AdamPS, I've applied changes that you listed above. I didn't change loadMultiple() method calls if a storage is used for other goals, e.g.
Comment #13
w.drupal commentedComment #14
adamps commentedThanks, it's good, I will commit it.
Comment #15
adamps commentedMany thanks w@drupal