You are here

public function GridStack::getSettings in GridStack 8

Same name and namespace in other branches
  1. 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\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'] : [];
}