function ConfigureSectionForm::getCurrentLayout

Same name in other branches
  1. 9 core/modules/layout_builder/src/Form/ConfigureSectionForm.php \Drupal\layout_builder\Form\ConfigureSectionForm::getCurrentLayout()
  2. 10 core/modules/layout_builder/src/Form/ConfigureSectionForm.php \Drupal\layout_builder\Form\ConfigureSectionForm::getCurrentLayout()

Retrieves the layout being modified by the form.

Return value

\Drupal\Core\Layout\LayoutInterface|\Drupal\Core\Plugin\PluginFormInterface The layout for the current form.

File

core/modules/layout_builder/src/Form/ConfigureSectionForm.php, line 255

Class

ConfigureSectionForm
Provides a form for configuring a layout section.

Namespace

Drupal\layout_builder\Form

Code

public function getCurrentLayout() : LayoutInterface {
    return $this->layout;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.