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.
Problem/Motivation
We should remove usages of setPublished() method with a parameter and only use the methods setPublished() and setUnpublished().
Proposed resolution
Replace all the usages of setPublished() method with a parameter with setPublished() or setUnpublished() methods where corresponding.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-2969549-8-9.txt | 541 bytes | martin107 |
#9 | 2969549-9.patch | 20.74 KB | martin107 |
#4 | interdiff-3.txt | 948 bytes | marcel66 |
#4 | 2969549-3.patch | 21.84 KB | marcel66 |
#2 | 2969549-2.patch | 22.76 KB | marcel66 |
Comments
Comment #2
marcel66 CreditAttribution: marcel66 as a volunteer commentedPatch written at DC Transylvania 2018 with amateescu.
Comment #4
marcel66 CreditAttribution: marcel66 as a volunteer commentedLets see if this fixes all the fails.
Comment #6
marcel66 CreditAttribution: marcel66 as a volunteer commentedI think this will work. Sorry ... was my first patch.
Comment #7
martin107 CreditAttribution: martin107 as a volunteer commentedHi @marcel66,
No problem, .... congratulations on the first patch ...
the file interdiff-4.txt has been caught up in the new patch
Comment #8
marcel66 CreditAttribution: marcel66 as a volunteer commentedThank you for observation and patient. Attached new patch without interdiff
Comment #9
martin107 CreditAttribution: martin107 as a volunteer commentedI will describe part of my review process.
When I look at the passing test results from #8 -- the test result is stored here.
https://www.drupal.org/pift-ci-job/956884
In that I see :-
So I see one tiny aspect to correct.
Otherwise the patch looks good and I think this is ready to go.
Also here is the guide on producing an interdiff.
https://www.drupal.org/documentation/git/interdiff
Comment #10
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedLooks great now, thanks @marcel66 and @martin107!
Comment #11
alexpottCommitted 84d5e36 and pushed to 8.6.x. Thanks!
Comment #14
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedHi,
The deprecation message text "The $published parameter is deprecated since version 8.3.x and will be removed in 9.0.0" does not make it helpful for developers to find what is actually causing the warning. There is no mention of the actual function called, hence I had to search for this text in the source code. Is it possble to add 'setPublished() and setUnpublished()' into the message, so that it gives some idea of where to start searching.
Thanks
Jonathan
ps. I know this issue is closed, but not sure where better to make this request.