public function LayoutOption::setWeight in Bootstrap Layout Builder 1.x
Same name and namespace in other branches
- 2.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 145
Class
- LayoutOption
- Defines the layout option entity class.
Namespace
Drupal\bootstrap_layout_builder\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}