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