Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StateInterface.php

function 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.

File

core/lib/Drupal/Core/State/StateInterface.php, line 44

Class

StateInterface
Defines the interface for the state system.

Namespace

Drupal\Core\State

Code

public function set($key, $value);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal