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

Breadcrumb

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

function SectionComponent::setWeight

Sets the weight of the component.

Parameters

int $weight: The zero-based weight of the component.

Return value

$this

File

core/modules/layout_builder/src/SectionComponent.php, line 179

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

public function setWeight($weight) {
    $this->weight = $weight;
    return $this;
}
RSS feed
Powered by Drupal