This depends on this layout_plugin issue #2490680: Allow layouts to provide settings.

That issue basically makes is it so that LayoutInterface also extends ConfigurablePluginInterface and PluginFormInterface so that layouts can provide settings forms and accept configuration.

This issue is mostly about Display Suite using the new APIs for settings to manage it's layout settings. This then allows other systems (like Panels) to use the Display Suite layouts and get all the necessary configuration forms, and for Display Suite to use other layouts and pull in their configuration forms (not using the Display Suite ones).

I've tested using page_manager with block_page_layout (an example included with layout_plugin) to successfully use the Display Suite layouts in page_manager.

And I've tested using Display Suite with the "Test layout (with settings)" from the layout_plugin_example module, and that also worked successfully!

Assuming I have this patch right, it also shouldn't change anything in the UI for Display Suite users using Display Suite layouts.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs review
FileSize
38.66 KB

Here is the patch! Please let me know what you think :-)

aspilicious’s picture

I'm working on getting all the tests green first to ensure we have a working testbot for the 8.x branch :)

dsnopek’s picture

@aspilicious: That's great, thanks! While all I really did was move code around, I'll feel much more comfortable about my changes once we can run the tests on them. :-)

Status: Needs review » Needs work

The last submitted patch, 2: ds-layout-settings-2612040-2.patch, failed testing.

dsnopek’s picture

Issue tags: +Needs reroll

Looks like this needs a reroll! I'll try to take a look at it early next week.

aspilicious’s picture

Thnx, I want to get this in before the 8.0.0 release :)

dsnopek’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
39.69 KB

Me too. :-)

Here's a re-roll of the patch!

Running the tests locally on both the unmodified 8.x-2.x branch and with the patch, I'm getting 3 failures from EntityTest. I'm not sure if it's some local environment issue, but I'm curious to see if they happen on testbot too... Otherwise, it's passing all the other tests for me locally!

dsnopek’s picture

Woohoo, tests are passing! The EntityTest failures must have been some issue with my local environment. :-)

  • aspilicious committed cde2dbc on 8.x-2.x authored by dsnopek
    Issue #2612040 by dsnopek, aspilicious: Allow DS to use Panels layouts...
aspilicious’s picture

Status: Needs review » Fixed

Did some minor changes, but...

THANK YOU SO VERY MUCH!

dsnopek’s picture

Huzzah! Thanks for reviewing and committing so quickly! We've finally achieved the "layout plugin dream" for Panels and DS :-)

pfrenssen’s picture

Wow, really nice! Didn't see this one coming. Thanks a lot!!

andypost’s picture

I found no dependency on the module, great!!!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.