You are here

public function Storage::set in Express 8

Saves a value for a given key.

Parameters

string $key: The key of the data to store.

mixed $value: The data to store.

Overrides MemoryStorage::set

File

themes/contrib/bootstrap/src/Utility/Storage.php, line 211
Contains \Drupal\bootstrap\Utility\Storage.

Class

Storage
Theme Storage.

Namespace

Drupal\bootstrap\Utility

Code

public function set($key, $value) {
  if (is_array($value)) {
    $value = new StorageItem($value, $this);
  }
  parent::set($key, $value);
  $this
    ->changed();
}