public function ViewmodepagePattern::setWeight in View Mode Page 3.2.x
Same name and namespace in other branches
- 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::setWeight()
- 4.0.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::setWeight()
Sets the weight of this pattern (compared to other patterns of this type).
Parameters
int $weight: The weight of the variant.
Return value
$this
Overrides ViewmodepagePatternInterface::setWeight
File
- src/
Entity/ ViewmodepagePattern.php, line 274
Class
- ViewmodepagePattern
- Defines the Viewmodepage pattern entity.
Namespace
Drupal\view_mode_page\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}