public function GridStack::setSettings in GridStack 8.2
Same name and namespace in other branches
- 8 src/Entity/GridStack.php \Drupal\gridstack\Entity\GridStack::setSettings()
Sets the values of gridstack settings.
Parameters
array $values: The setting values.
bool $merged: The flag indicating to merge values with default ones.
Return value
$this The class is being called.
Overrides GridStackInterface::setSettings
File
- src/
Entity/ GridStack.php, line 93
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function setSettings(array $values, $merged = TRUE) {
$settings = isset($this->options['settings']) ? $this->options['settings'] : [];
$this->options['settings'] = $merged ? array_merge($settings, $values) : $values;
return $this;
}