You are here

public function Storage::setKey in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 src/Helper/Storage.php \Drupal\acquia_connector\Helper\Storage::setKey()
  2. 3.x src/Helper/Storage.php \Drupal\acquia_connector\Helper\Storage::setKey()

Updates Acquia Subscription key.

Parameters

string $value: Acquia Subscription key.

File

src/Helper/Storage.php, line 51

Class

Storage
Class Storage.

Namespace

Drupal\acquia_connector\Helper

Code

public function setKey($value) {
  \Drupal::state()
    ->set('acquia_connector.key', $value);
}