You are here

public function GridStack::getOption in GridStack 8

Returns the value of a gridstack option group.

Parameters

string $group: The group name: settings, icon, use_framework, breakpoints.

Return value

mixed The option value merged with defaults.

Overrides GridStackInterface::getOption

2 calls to GridStack::getOption()
GridStack::getBreakpoints in src/Entity/GridStack.php
Returns options.breakpoints.[xs|sm|md|lg|xl], or all, else empty.
GridStack::getIconUri in src/Entity/GridStack.php
Returns the icon URI.

File

src/Entity/GridStack.php, line 121

Class

GridStack
Defines the GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function getOption($group) {
  return isset($this->options[$group]) ? $this->options[$group] : NULL;
}