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