public function Section::removeComponent in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::removeComponent()
- 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::removeComponent()
Removes a given component from a region.
Parameters
string $uuid: The UUID of the component to remove.
Return value
$this
File
- core/
modules/ layout_builder/ src/ Section.php, line 217
Class
- Section
- Provides a domain object for layout sections.
Namespace
Drupal\layout_builderCode
public function removeComponent($uuid) {
unset($this->components[$uuid]);
return $this;
}