"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.9/core/lib/Drupal/Core/Layout/LayoutInterface.php" (18 Nov 2020, 1032 Bytes) of package /linux/www/drupal-8.9.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "LayoutInterface.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\Core\Layout;
    4 
    5 use Drupal\Component\Plugin\ConfigurablePluginInterface;
    6 use Drupal\Component\Plugin\DerivativeInspectionInterface;
    7 use Drupal\Component\Plugin\PluginInspectionInterface;
    8 use Drupal\Component\Plugin\ConfigurableInterface;
    9 use Drupal\Component\Plugin\DependentPluginInterface;
   10 
   11 /**
   12  * Provides an interface for static Layout plugins.
   13  */
   14 interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ConfigurableInterface, DependentPluginInterface, ConfigurablePluginInterface {
   15 
   16   /**
   17    * Build a render array for layout with regions.
   18    *
   19    * @param array $regions
   20    *   An associative array keyed by region name, containing render arrays
   21    *   representing the content that should be placed in each region.
   22    *
   23    * @return array
   24    *   Render array for the layout with regions.
   25    */
   26   public function build(array $regions);
   27 
   28   /**
   29    * {@inheritdoc}
   30    *
   31    * @return \Drupal\Core\Layout\LayoutDefinition
   32    */
   33   public function getPluginDefinition();
   34 
   35 }