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.
12 interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ConfigurablePluginInterface {
15 * Build a render array for layout with regions.
17 * @param array $regions
18 * An associative array keyed by region name, containing render arrays
19 * representing the content that should be placed in each region.
22 * Render array for the layout with regions.
24 public function build(array $regions);
29 * @return \Drupal\Core\Layout\LayoutDefinition
31 public function getPluginDefinition();