You are here

public function GridStack::setSetting in GridStack 8.2

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

Sets the value of a gridstack setting.

Parameters

string $name: The setting name.

string $value: The setting value.

Return value

$this The class is being called.

Overrides GridStackInterface::setSetting

File

src/Entity/GridStack.php, line 109

Class

GridStack
Defines the GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function setSetting($name, $value) {
  $this->options['settings'][$name] = $value;
  return $this;
}