public function ConfigureBlockFormBase::getCurrentComponent in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()
- 9 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\FormCode
public function getCurrentComponent() {
return $this
->getCurrentSection()
->getComponent($this->uuid);
}