You are here

public function StateInterface::set in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/State/StateInterface.php \Drupal\Core\State\StateInterface::set()

Saves a value for a given key.

Parameters

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

mixed $value: The data to store.

1 method overrides StateInterface::set()
State::set in lib/Drupal/Core/State/State.php
Saves a value for a given key.

File

lib/Drupal/Core/State/StateInterface.php, line 49
Contains \Drupal\Core\State\StateInterface.

Class

StateInterface
Defines the interface for the state system.

Namespace

Drupal\Core\State

Code

public function set($key, $value);