LayoutInterface.php in Layout Plugin (obsolete, use core's Layout Discovery) 8
Namespace
Drupal\layout_plugin\Plugin\LayoutFile
src/Plugin/Layout/LayoutInterface.phpView 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
Name | Description |
---|---|
LayoutInterface | Provides an interface for static Layout plugins. |