You are here

public function Slick::setSetting in Slick Carousel 8

Sets the value of a slick setting.

Parameters

string $setting_name: The setting name.

string $value: The setting value.

Return value

$this The class instance that this method is called on.

Overrides SlickInterface::setSetting

File

src/Entity/Slick.php, line 180

Class

Slick
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

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