Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2017 at 20:10 UTC
Updated:
24 Apr 2018 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
blake.thompson commentedComment #3
blake.thompson commentedAttached patch that allows attachments to be added to Embed displays.
Comment #4
dawehnerThat totally makes sense. @blake.thompson Do you think it makes sense to add a test here?
Comment #5
blake.thompson commentedI don't think this particular change needs a test, it's just making use of the DisplayPluginBase boolean like Block and Page. If there should be more tests around the variable or method that uses it, then perhaps a test(s) should be added.
Comment #8
blake.thompson commentedUpdating patch with {@inheritdoc}
Comment #9
dawehnerI don't see a reason not to support it. To be honest this is more of a task than a feature :)
One thing which would be nice, as it helps the committers: Name a concrete usecase you need this for.
Comment #10
blake.thompson commentedIt's been a while, haha, but I think the use case was needing to embed a view on a landing page content type using a field to select the View / Display. The embed display used an offset to exclude the first item, and an attachment was used to prefix the view with the first item in a different, more pronounced, style.
Comment #11
dawehnerThank you @blake.thompson, I copied your statement into the issue summary.
I don't think we need tests given that we have this boolean flag tested in all the attachment tests already.
Comment #12
alexpottThis seems sensible. I tried it out and looked through the code for anything that might break. Couldn't spot anything. I contemplated whether or not this needs a change record and I don't think so.
Committed 5550b76 and pushed to 8.6.x. Thanks!
Comment #15
jastraat commentedHas anyone actually tested this? While attachments can now be linked to an embed display, if you try to display a summary in the attachment (as though you were going to create a glossary-like view+attachment) - it fails silently with no view results.