You are here

public function Request::getApplicationData in RESTful 7.2

Gets an object from the application data store.

Parameters

string $key: Identifier.

Return value

mixed The data stored as part of the request.

Overrides RequestInterface::getApplicationData

File

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

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function getApplicationData($key) {
  if (!isset($this->applicationData[$key])) {
    return NULL;
  }
  return $this->applicationData[$key];
}