function StateInterface::getValuesSetDuringRequest
Returns any values modified for a given key during the request.
Parameters
string $key: The key to get the values for.
Return value
array{value: mixed, original: mixed}|null An array containing:
- value: The last value set during the request.
- original: The initial value at the start of the request.
If $key is not set, NULL is returned.
1 method overrides StateInterface::getValuesSetDuringRequest()
- State::getValuesSetDuringRequest in core/
lib/ Drupal/ Core/ State/ State.php - Returns any values modified for a given key during the request.
File
-
core/
lib/ Drupal/ Core/ State/ StateInterface.php, line 89
Class
- StateInterface
- Defines the interface for the state system.
Namespace
Drupal\Core\StateCode
public function getValuesSetDuringRequest(string $key) : ?array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.