You are here

public function ConfigureBlockFormBase::getCurrentSection in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentSection()

Retrieves the current layout section being edited by the form.

Return value

\Drupal\layout_builder\Section The current layout section.

File

core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php, line 277

Class

ConfigureBlockFormBase
Provides a base form for configuring a block.

Namespace

Drupal\layout_builder\Form

Code

public function getCurrentSection() {
  return $this->sectionStorage
    ->getSection($this->delta);
}