Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
BlockInterface.php
function 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 109
Class
BlockInterface
Provides an interface defining a block entity.
Namespace
Drupal\block
Code
public
function
setWeight
(
$weight
);
RSS feed