You are here

public function BootstrapLayout::unsetSetting in Bootstrap Layouts 8.4

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

Removes a layout setting.

Parameters

string $name: The layout region to remove.

Return value

mixed The setting that was removed.

File

src/BootstrapLayout.php, line 240

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

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