You are here

public function GridStack::getSettings in GridStack 8.2

Same name and namespace in other branches
  1. 8 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 84

Class

GridStack
Defines the GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

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'] : [];
}