You are here

public function ConfigureBlockFormBase::getCurrentComponent in Drupal 9

Same name and namespace in other branches
  1. 8 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);
}