You are here

public function SlickBase::setSetting in Slick Carousel 8.2

Same name and namespace in other branches
  1. 7.3 src/Entity/SlickBase.php \Drupal\slick\Entity\SlickBase::setSetting()

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 SlickBaseInterface::setSetting

File

src/Entity/SlickBase.php, line 95

Class

SlickBase
Defines the Slick configuration entity.

Namespace

Drupal\slick\Entity

Code

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