function 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.