Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Section.php

function 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 223

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

public function removeComponent($uuid) {
    unset($this->components[$uuid]);
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal