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
When using the @ContextDefinition annotation for condition or action plugins then the data type (the most important information about the context) is not visible enough. The annotation uses a mix of a simple string and then key value pairs which is inconsistent
Proposed resolution
Introduce a "data_type" key to make the data type visible and consistent.
Remaining tasks
Patch.
User interface changes
none.
API changes
hopefully none, if this can be implemented in a backwards compatible way.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2349979.patch | 3.97 KB | klausi |
Comments
Comment #1
klausiklausi opened a new pull request for this issue.
Comment #3
fagoWhat about calling the key "type" only? Anyway, for BC we could make it support both ways now?
Comment #4
fagoBesides that, we'll need a way to make context definition object extendable by specifying more keys in the annotation for Rules. I think, we could take care of both as part of this issue.