You are here

public function PageVariant::setWeight in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 304

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

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