3 namespace Drupal\Core\Layout;
5 use Drupal\Component\Plugin\DerivativeInspectionInterface;
6 use Drupal\Component\Plugin\PluginInspectionInterface;
7 use Drupal\Component\Plugin\ConfigurablePluginInterface;
10 * Provides an interface for static Layout plugins.
13 * The layout system is currently experimental and should only be leveraged by
14 * experimental modules and development releases of contributed modules.
15 * See https://www.drupal.org/core/experimental for more information.
17 interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ConfigurablePluginInterface {
20 * Build a render array for layout with regions.
22 * @param array $regions
23 * An associative array keyed by region name, containing render arrays
24 * representing the content that should be placed in each region.
27 * Render array for the layout with regions.
29 public function build(array $regions);
34 * @return \Drupal\Core\Layout\LayoutDefinition
36 public function getPluginDefinition();