You are here

public function Request::setApplicationData in RESTful 7.2

Sets an object in the application data store.

Parameters

string $key: Identifier.

mixed $value: The data to store as part of the request.

Overrides RequestInterface::setApplicationData

File

src/Http/Request.php, line 511
Contains \Drupal\restful\Http\Request

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function setApplicationData($key, $value) {
  $this->applicationData[$key] = $value;
}