You are here

public function BootstrapLayout::setRegion in Bootstrap Layouts 8.5

Same name and namespace in other branches
  1. 8.4 src/BootstrapLayout.php \Drupal\bootstrap_layouts\BootstrapLayout::setRegion()

Sets a specific layout region.

Parameters

string $name: The layout region name.

mixed $value: The layout region value.

Return value

\Drupal\bootstrap_layouts\BootstrapLayout The current BootstrapLayout instance.

File

src/BootstrapLayout.php, line 188

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

public function setRegion($name, $value = NULL) {
  $this->data['regions'][$name] = $value;
  return $this;
}