You are here

public function LocaleProjectStorage::set in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/locale/src/LocaleProjectStorage.php \Drupal\locale\LocaleProjectStorage::set()

Creates or updates the project record.

Parameters

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

mixed $value: The data to store.

Overrides LocaleProjectStorageInterface::set

File

core/modules/locale/src/LocaleProjectStorage.php, line 94
Contains \Drupal\locale\LocaleProjectStorage.

Class

LocaleProjectStorage
Provides the locale project storage system using a key value store.

Namespace

Drupal\locale

Code

public function set($key, $value) {
  $this
    ->setMultiple(array(
    $key => $value,
  ));
}