interface LayoutInterface in Layout Plugin (obsolete, use core's Layout Discovery) 8
Provides an interface for static Layout plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\layout_plugin\Plugin\Layout\LayoutInterface
Expanded class hierarchy of LayoutInterface
All classes that implement LayoutInterface
File
- src/
Plugin/ Layout/ LayoutInterface.php, line 11
Namespace
Drupal\layout_plugin\Plugin\LayoutView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
LayoutInterface:: |
public | function | Build a render array for layout with regions. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |