32ee74d18b0472b935f8b75e1242446a701e53e0
[yaffs-website] / web / core / lib / Drupal / Core / Layout / LayoutInterface.php
1 <?php
2
3 namespace Drupal\Core\Layout;
4
5 use Drupal\Component\Plugin\DerivativeInspectionInterface;
6 use Drupal\Component\Plugin\PluginInspectionInterface;
7 use Drupal\Component\Plugin\ConfigurablePluginInterface;
8
9 /**
10  * Provides an interface for static Layout plugins.
11  */
12 interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ConfigurablePluginInterface {
13
14   /**
15    * Build a render array for layout with regions.
16    *
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.
20    *
21    * @return array
22    *   Render array for the layout with regions.
23    */
24   public function build(array $regions);
25
26   /**
27    * {@inheritdoc}
28    *
29    * @return \Drupal\Core\Layout\LayoutDefinition
30    */
31   public function getPluginDefinition();
32
33 }