Drupal\layout_plugin\Plugin\Layout\LayoutBase has two public methods getRegionNames() and getRegionDefinitions(). In the base implementation, they get their return values from the plugin definition.

Panels doesn't use these methods, but instead gets the regions directly from the plugin definition. It would be nice, if panels would use the API methods provided by the layout plugin as this would enable developers to write custom layout plugins with dynamic regions, e.g. based on layout settings. This has been possible in D7 and it would be nice to have this again in D8.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FeyP created an issue. See original summary.

FeyP’s picture

Status: Active » Needs review
FileSize
1.23 KB

Attached is a patch against 8.x-3.x-dev.

Status: Needs review » Needs work

The last submitted patch, 2: layout-regions-2831672-02.patch, failed testing.

DamienMcKenna’s picture

Version: 8.x-3.x-dev » 8.x-4.x-dev