You are here

public function BootstrapLayout::getRegion in Bootstrap Layouts 8.4

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

Retrieves a specific layout region.

Parameters

string $name: The layout region to retrieve.

mixed $default_value: The default value to use if layout region does not exists.

Return value

mixed The layout region value or $default_value if it does not exist.

File

src/BootstrapLayout.php, line 88

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

public function getRegion($name, $default_value = NULL) {
  return isset($this->data['regions'][$name]) ? $this->data['regions'][$name] : $default_value;
}