You are here

public function Block::getRegion in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block::getRegion()
  2. 9 core/modules/block/src/Entity/Block.php \Drupal\block\Entity\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;
}