function ResourceResponse::getResponseData

Same name in other branches
  1. 9 core/modules/jsonapi/src/ResourceResponse.php \Drupal\jsonapi\ResourceResponse::getResponseData()
  2. 8.9.x core/modules/jsonapi/src/ResourceResponse.php \Drupal\jsonapi\ResourceResponse::getResponseData()
  3. 10 core/modules/jsonapi/src/ResourceResponse.php \Drupal\jsonapi\ResourceResponse::getResponseData()

Returns response data that should be serialized.

Return value

mixed Response data that should be serialized.

File

core/modules/jsonapi/src/ResourceResponse.php, line 53

Class

ResourceResponse
Contains data for serialization before sending the response.

Namespace

Drupal\jsonapi

Code

public function getResponseData() {
    return $this->responseData;
}

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