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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | layout-regions-2831672-02.patch | 1.23 KB | FeyP |
Comments
Comment #2
FeyP CreditAttribution: FeyP at werk21 commentedAttached is a patch against 8.x-3.x-dev.
Comment #4
DamienMcKenna