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