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