You are here

LayoutInterface.php in Layout Plugin (obsolete, use core's Layout Discovery) 8

File

src/Plugin/Layout/LayoutInterface.php
View source
<?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);

}

Interfaces

Namesort descending Description
LayoutInterface Provides an interface for static Layout plugins.