function Block::getRegion

Returns the region this block is placed in.

Return value

string The region this block is placed in.

Overrides BlockInterface::getRegion

File

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

Class

Block
Defines a Block configuration entity class.

Namespace

Drupal\block\Entity

Code

public function getRegion() {
  return $this->region;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.