webform_civicrm
webform_civicrm copied to clipboard
Extends FieldInterface interface to add getSets() as service's method
Overview
Extends FieldInterface
class and add getSets()
method as part of it (changed visibility to public) so it will be a public method in services webform_civicrm.fields
.
This change allows to decorate this service's method and add new data sets into the Webform CiviCRM Admin UI from a Drupal 9/10 custom module.
After
getSets()
is a public method for service webform_civicrm.fields
Technical Details
This was discussed in PR https://github.com/colemanw/webform_civicrm/pull/827. Once this is in place you will be able to create a Drupal 9/10 custom module to add new sections or change field's metadata in Webform CiviCRM Admin UI
Comments
I don't see any drawback on implementing this change, rather than the ones who have already created a custom module and are implementing class FieldInterface
, will get a new error saying method getSets()
is not implemented. Easy to fix with a parent
callback.