public function ViewmodepagePatternInterface::setWeight in View Mode Page 4.0.x
Same name and namespace in other branches
- 8.3 src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::setWeight()
- 3.2.x src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::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
1 method overrides ViewmodepagePatternInterface::setWeight()
- ViewmodepagePattern::setWeight in src/
Entity/ ViewmodepagePattern.php - Sets the weight of this pattern (compared to other patterns of this type).
File
- src/
ViewmodepagePatternInterface.php, line 88
Class
- ViewmodepagePatternInterface
- Provides an interface for defining Viewmodepage pattern entities.
Namespace
Drupal\view_mode_pageCode
public function setWeight($weight);