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.
Just a bit of clean-up, patch coming.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2813733-2-3.txt | 4.15 KB | martin107 |
#3 | 2813733-3.flag_.rel-handler-cleanup.patch | 4.61 KB | martin107 |
Comments
Comment #2
joachim CreditAttribution: joachim commented$default_value is only used once, so no need to set it.
And when we iterate over the result of getFlags(), there's no need to check if the values are empty. getFlags() returns flags, they're flags!
Comment #3
martin107 CreditAttribution: martin107 as a volunteer commented@joachim
if this is a general purpose cleanup in addition I would like to :-
1) Inject the flag and kill switch service directly.
2) Fix a few mis-steaks identified by phpcs
Comment #4
joachim CreditAttribution: joachim commentedThanks!
Committed, with one small tweak:
> * Constructs a PluginBase object.