Problem/Motivation
We have both ui_patterns_views/ViewRowsSource and display_builder_views/ViewRowsSource.
Proposed resolution
There must be a reason why this plugin was duplicated, let's see if we have something to change in ui_patterns_views/ViewRowsSource
Can we get rid of context_requirements: ['is_display_builder_views'] which is not existing in UI Patterns 2? Maybe we need to merge this context requirement with views:style from ui_patterns_views/ViewRowsSource (which may be renamed, views:view? views:rows? views:display? but it is an UI Patterns 2 issue).
Remaining tasks
Do we move the source plugins of display_builder_views to ui_patterns_views once we are sure they are compatible? If we do that, let's be careful with #3533043: Expose view sources forms in SourceInterface::settingsForm() and wait for #3533046: Reword plugins ID, label & descriptions.
Issue fork display_builder-3533044
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 commentedComment #3
pdureau commentedComment #4
pdureau commentedComment #5
pdureau commentedAlso
On the rendered view :
Call to a member function getOption(), sometimes, when we use the UIP2 ViewRows instead of the DB one: may be related to #3533044: Merge the two ViewRowsSource plugins and the issue may be addressed in UI Patterns 2 leveComment #6
pdureau commentedComment #7
mogtofu33 commentedI think the problem is the UIP source views rows is assuming it is used only in views context with views settings available.
But in Display builder we don't have (yet?) the views settings, so using the UIP views rows create an error as it want to get the settings.
So probably this should be a UIP modification?
Comment #8
pdureau commentedLet's create a related issue on UIP2 side and resume after that.
Comment #9
pdureau commentedRelated UI Patterns issue: #3556413: Future proofing views source plugin
Comment #10
just_like_good_vibesrequire #3556413: Future proofing views source plugin
Comment #12
just_like_good_vibesComment #13
pdureau commentedOK for me. To be tested with upcoming UI Patterns 2.0.12.
Comment #14
mogtofu33 commented