public function PageVariant::setWeight in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::setWeight()
Sets the weight of this variant (compared to other variants on the page).
Parameters
int $weight: The weight of the variant.
Return value
$this
Overrides PageVariantInterface::setWeight
File
- src/
Entity/ PageVariant.php, line 309 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}