function ConfigureBlockFormBase::getCurrentComponent

Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()
  2. 10 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()
  3. 11.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()

Retrieves the current component being edited by the form.

Return value

\Drupal\layout_builder\SectionComponent The current section component.

File

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

Class

ConfigureBlockFormBase
Provides a base form for configuring a block.

Namespace

Drupal\layout_builder\Form

Code

public function getCurrentComponent() {
    return $this->getCurrentSection()
        ->getComponent($this->uuid);
}

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