function VariantInterface::setWeight
Same name in other branches
- 9 core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::setWeight()
- 8.9.x core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::setWeight()
- 11.x core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::setWeight()
Sets the weight of the display variant.
Parameters
int $weight: The weight to set.
1 method overrides VariantInterface::setWeight()
- VariantBase::setWeight in core/
lib/ Drupal/ Core/ Display/ VariantBase.php - Sets the weight of the display variant.
File
-
core/
lib/ Drupal/ Core/ Display/ VariantInterface.php, line 62
Class
- VariantInterface
- Provides an interface for DisplayVariant plugins.
Namespace
Drupal\Core\DisplayCode
public function setWeight($weight);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.