function ConfigureBlockFormBase::getCurrentComponent
Same name in other branches
- 8.9.x core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()
- 10 core/modules/layout_builder/src/Form/ConfigureBlockFormBase.php \Drupal\layout_builder\Form\ConfigureBlockFormBase::getCurrentComponent()
- 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\FormCode
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.