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.
I love this project... it is really useful for copying snippets of code....
Therefore I want to ensure that we are always bug free.
The definition of Drupal\plugin_type_example\Annotation\Sandwich:id introduces a small issue.
It corrupts the existing definition of id - making it writable.
Sandwich extends Plugin which picks up PLugin::getId() -- which is the mechanism designed to ensure it is as read only variable.
This mistake ripples all over core .. and contrib.
I am trying to take it out of core here #2917345: Parallel definition of ID is confusing
Comment | File | Size | Author |
---|---|---|---|
#2 | 2917385-2.patch | 518 bytes | martin107 |
|
Comments
Comment #2
martin107 CreditAttribution: martin107 as a volunteer commentedNow I have a issue number .. here is the patch.
Comment #4
Mile23I think this is probably a good change. We have this test:
This would fail if the ID is not parsed from our sandwich plugins.
Committed and pushed. Thanks!