You are here

public function BlazySettings::set in Blazy 8.2

Sets values for a key.

File

src/BlazySettings.php, line 46

Class

BlazySettings
Provides settings object.

Namespace

Drupal\blazy

Code

public function set($key, $value = NULL) {
  if (is_array($key) && empty($value)) {
    foreach ($key as $k => $v) {
      $this->storage[$k] = $v;
    }
  }
  else {
    $this->storage[$key] = $value;
  }
  return $this;
}