in order to provide a stable API for alpha1, we need to remove ambiguity of some methods names, and rely on interfaces as much as possible.
Following #3413703: [2.0.0-alpha1] Source plugin manager: methods naming and interfaces use
Current investigation. Let's talk about this.
- Use PluginFormInterface::buildConfigurationForm() in source plugins instead of SourcePluginBase:buildSourceConfigurationForm(), moving the wrapping of SourcePluginBase::buildConfigurationForm() into the form builder. So, every expected methods in a plugin class belong to a defined interface
- PluginFormInterface::validateConfigurationForm() is not used by the form builder. are we missing something?
- ContextAwarePluginInterface methods are not used by the Form Builder, only internally by SourcePluginBase. is it normal ?
Issue fork ui_patterns-3414291
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedIt is currently done in #3395953: [2.0.0-alpha1] Add new Form Builder
So, the remaining parts of this issue are:
Comment #3
pdureau commentedChristian, following the form builder refactor, can you answer those 2 questions?
Comment #4
pdureau commentedthis one was resolved by the new interface baed on settingsForm():
PluginFormInterface::validateConfigurationForm() is not used by the form builder. are we missing something?Last question: "ContextAwarePluginInterface methods are not used by the Form Builder, only internally by SourcePluginBase. is it normal ?"
Comment #5
pdureau commentedAlso: add default "value" key in each source plugin forms.
Like content field properties, there is always at least a key, and this one is "value" by default.
Comment #8
christian.wiedemann commentedComment #9
pdureau commentedComment #10
pdureau commentedAfter rebasing #3420653: [2.0.X-alpha1] Introduce buildComponentRenderable, there are a few issues left:
Those issues were already there before the additional commits.
Also: remove useless references (&$foo)
Comment #13
pdureau commentedComment #15
christian.wiedemann commented