Block::setWeight

public Block::setWeight($weight)

Sets the block weight.

Parameters

int $weight: The desired weight.

Return value

$this

Overrides BlockInterface::setWeight

File

core/modules/block/src/Entity/Block.php, line 311

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}
doc_Drupal
2016-10-29 08:46:30
Comments
Leave a Comment

Please login to continue.