Problem/Motivation
In #2824979: The DataDefinitionInterface is missing setConstraints method the setConstraints() method was added to DataDefinitionInterface. This means ContextDefinitionInterface and DataDefinitionInterface are now both implementing:
- getConstraints()
- getConstraint()
- addConstraint()
- setConstraints()
Should we introduce an new interface to bring ContextDefinitionInterface and DataDefinitionInterface together?
Proposed resolution
Add a new interface, remove methods from \Drupal\Component\Plugin\Context\ContextDefinitionInterface and \Drupal\Core\TypedData\DataDefinitionInterface.
Remaining tasks
Discuss how to name to new interface, create it and remove methods from \Drupal\Component\Plugin\Context\ContextDefinitionInterface and \Drupal\Core\TypedData\DataDefinitionInterface.
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #14
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #16
smustgrave commentedWanted to bump 1 more time if still needed? Am changing to a feature request though.