function BlockInterface::getWeight
Same name in other branches
- 8.9.x core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getWeight()
- 10 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getWeight()
- 11.x core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getWeight()
Returns the weight of this block (used for sorting).
Return value
int The block weight.
1 method overrides BlockInterface::getWeight()
- Block::getWeight in core/
modules/ block/ src/ Entity/ Block.php - Returns the weight of this block (used for sorting).
File
-
core/
modules/ block/ src/ BlockInterface.php, line 89
Class
- BlockInterface
- Provides an interface defining a block entity.
Namespace
Drupal\blockCode
public function getWeight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.