You are here

interface LayoutInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Layout/LayoutInterface.php \Drupal\Core\Layout\LayoutInterface
  2. 9 core/lib/Drupal/Core/Layout/LayoutInterface.php \Drupal\Core\Layout\LayoutInterface

Provides an interface for static Layout plugins.

Hierarchy

Expanded class hierarchy of LayoutInterface

All classes that implement LayoutInterface

7 files declare their use of LayoutInterface
ConfigureSectionForm.php in core/modules/layout_builder/src/Form/ConfigureSectionForm.php
EntityDisplayWithLayoutInterface.php in core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php
FieldLayoutEntityDisplayTrait.php in core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php
LayoutPluginManagerTest.php in core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php
SectionComponentTest.php in core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php

... See full list

File

core/lib/Drupal/Core/Layout/LayoutInterface.php, line 14

Namespace

Drupal\Core\Layout
View source
interface LayoutInterface extends PluginInspectionInterface, DerivativeInspectionInterface, ConfigurableInterface, DependentPluginInterface, ContextAwarePluginInterface {

  /**
   * 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);

  /**
   * {@inheritdoc}
   *
   * @return \Drupal\Core\Layout\LayoutDefinition
   */
  public function getPluginDefinition();

}

Members