State::$keysSetDuringRequest

Tracks keys that have been modified during the request lifecycle.

An associative array keyed by the state key name, where each value is an array with the following keys:

  • value: The last value set during the request.
  • original: The initial value at the start of the request.

Type: keysSetDuringRequest

File

core/lib/Drupal/Core/State/State.php, line 41

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

protected array $keysSetDuringRequest = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.