You are here

public function GridStack::getSetting in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/Entity/GridStack.php \Drupal\gridstack\Entity\GridStack::getSetting()

Returns the value of a gridstack setting.

Parameters

string $name: The setting name.

Return value

mixed The option value.

Overrides GridStackInterface::getSetting

File

src/Entity/GridStack.php, line 155

Class

GridStack
Defines the GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function getSetting($name) {
  return NULL !== $this
    ->getOptions('settings', $name) ? $this
    ->getOptions('settings', $name) : NULL;
}