Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlockInterface.php

function 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
Sets the region this block is placed in.

File

core/modules/block/src/BlockInterface.php, line 99

Class

BlockInterface
Provides an interface defining a block entity.

Namespace

Drupal\block

Code

public function setRegion($region);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal