public function BlockInterface::setWeight in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 124 - Contains \Drupal\block\BlockInterface.
Class
- BlockInterface
- Provides an interface defining a block entity.
Namespace
Drupal\blockCode
public function setWeight($weight);