You are here

public function GridStackBase::setOptions in GridStack 8.2

File

src/Entity/GridStackBase.php, line 102

Class

GridStackBase
Defines the base class for GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function setOptions(array $options = [], $merged = TRUE) {
  $this->options = $merged ? NestedArray::mergeDeep($this->options, $options) : $options;
  return $this;
}