You are here

public function Drupal8State::get in Rocket.Chat 8.2

Returns the stored value for a given key.

Parameters

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

mixed $default: The default value to use if the key is not found.

Return value

mixed The stored value, or NULL if no value exists.

Overrides RocketChatStateinterface::get

File

modules/rocket_chat_api/src/RocketChat/Drupal8State.php, line 38

Class

Drupal8State
Class Drupal8State

Namespace

Drupal\rocket_chat_api\RocketChat

Code

public function get($key, $default = NULL) {
  return $this->state
    ->get($key, $default);
}