Version 1
[yaffs-website] / web / modules / contrib / layout_plugin / src / Plugin / Layout / LayoutInterface.php
diff --git a/web/modules/contrib/layout_plugin/src/Plugin/Layout/LayoutInterface.php b/web/modules/contrib/layout_plugin/src/Plugin/Layout/LayoutInterface.php
new file mode 100644 (file)
index 0000000..aae9aff
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\layout_plugin\Plugin\Layout;
+
+use Drupal\Component\Plugin\DerivativeInspectionInterface;
+use Drupal\Component\Plugin\PluginInspectionInterface;
+
+/**
+ * Provides an interface for static Layout plugins.
+ */
+interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface {
+
+  /**
+   * Build a render array for layout with regions.
+   *
+   * @param array $regions
+   *   An associative array keyed by region name, containing render arrays
+   *   representing the content that should be placed in each region.
+   *
+   * @return array
+   *   Render array for the layout with regions.
+   */
+  public function build(array $regions);
+
+}