You are here

public function BootstrapLayout::unsetRegion in Bootstrap Layouts 8.4

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

Removes a layout region.

Parameters

string $name: The layout region to remove.

Return value

mixed The region that was removed.

File

src/BootstrapLayout.php, line 225

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

public function unsetRegion($name) {
  $old = isset($this->data['regions'][$name]) ? $this->data['regions'][$name] : NULL;
  unset($this->data['regions'][$name]);
  return $old;
}