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.
We don't need this property really, plus it's not very descriptive.
Comment | File | Size | Author |
---|---|---|---|
#25 | drupal-1931860-25.patch | 3.74 KB | dawehner |
#25 | interdiff.txt | 587 bytes | dawehner |
#22 | drupal-1931860-22.patch | 4.04 KB | dawehner |
#22 | interdiff.txt | 881 bytes | dawehner |
#17 | drupal-1931860-17.patch | 3.62 KB | dawehner |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedComment #3
damiankloip CreditAttribution: damiankloip commentedYeah, so I don't think we can remove this so easily. As argument plugins can alter the style plugin, and this means setting this property, which is then used to load the style plugin in initStyle. We could pass an argument into initStyle? So instead of
We could
And alter it that way maybe.
EDIT: Meh, we have style_options too that can be overridden. I don't love just setting the property like that, but not sure of a better way at the moment. As a minimum we should rename the plugin_name property on ViewExecutable?
Comment #4
damiankloip CreditAttribution: damiankloip commentedOr we could store this info in the build_info array instead?
Meh, that's more confusing to use, and not any cleaner.
Comment #5
dawehnerOne other way could be somehow to set the value on the display BUT then don't interfere with the saving of the view. Currently this would automatically change the style plugin.
One other way could be also to ask the argument plugin explicit whether it wants to provide a different style plugin/style options, but yeah this seems to be really custom as well.
Comment #6
dawehnerWhat about something like this:
Comment #7
jibranComment #8
damiankloip CreditAttribution: damiankloip commentedThis approach works for me, if it's already set initStyle will honour that.
Comment #10
damiankloip CreditAttribution: damiankloip commentedI think that last patch left some references to plugin_name in initStyle?
Comment #11
damiankloip CreditAttribution: damiankloip commentedIs that what you meant?
Comment #13
dawehnerLet's see how much this fixes.
Comment #15
dawehnerWhat about using even getPlugin on the display directly?
Comment #16
damiankloip CreditAttribution: damiankloip commentedoops.
Comment #17
dawehnerJust wondering whether "ups" is also okay in english?
Comment #18
damiankloip CreditAttribution: damiankloip commented#17: drupal-1931860-17.patch queued for re-testing.
Comment #19
damiankloip CreditAttribution: damiankloip commentedI think while we are ripping everything else out of this method we don't need to check is_object() anymore..
The comment above can be moved onto one line too.
Comment #20
dawehnerWell I still think we want to be sure that not nothing bad is stored on there ...
Comment #21
damiankloip CreditAttribution: damiankloip commentedIs that being paranoid?
Comment #22
dawehnerI don't like to argue that :)
Comment #24
jibranTypo
Comment #25
dawehnerUps.
Comment #26
damiankloip CreditAttribution: damiankloip commentedLooks good.
Comment #27
alexpottCommitted 228a2aa and pushed to 8.x. Thanks!