You are here

public function LayoutOption::setWeight in Bootstrap Layout Builder 2.x

Same name and namespace in other branches
  1. 1.x src/Entity/LayoutOption.php \Drupal\bootstrap_layout_builder\Entity\LayoutOption::setWeight()

Sets the weight among layout options with the same depth.

Parameters

int $weight: The layout option weight.

Return value

$this The called layout option entity.

Overrides LayoutOptionInterface::setWeight

File

src/Entity/LayoutOption.php, line 155

Class

LayoutOption
Defines the layout option entity class.

Namespace

Drupal\bootstrap_layout_builder\Entity

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}