function ConfigureBlockFormBase::getCurrentSection

Same name in other branches
  1. 9 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentSection()
  2. 8.9.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentSection()
  3. 10 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 276

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);
}

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