comparison core/lib/Drupal/Core/Layout/LayoutInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children af1871eacc83
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }