Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
|
@ -13,17 +13,13 @@ use Symfony\Component\HttpFoundation\Response;
|
|||
* our response data. $content implies that the provided data must either be a
|
||||
* string or an object with a __toString() method, which is not a requirement
|
||||
* for data used here.
|
||||
*
|
||||
* @see \Drupal\rest\ModifiedResourceResponse
|
||||
*/
|
||||
class ResourceResponse extends Response implements CacheableResponseInterface {
|
||||
class ResourceResponse extends Response implements CacheableResponseInterface, ResourceResponseInterface {
|
||||
|
||||
use CacheableResponseTrait;
|
||||
|
||||
/**
|
||||
* Response data that should be serialized.
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $responseData;
|
||||
use ResourceResponseTrait;
|
||||
|
||||
/**
|
||||
* Constructor for ResourceResponse objects.
|
||||
|
|
@ -40,14 +36,4 @@ class ResourceResponse extends Response implements CacheableResponseInterface {
|
|||
parent::__construct('', $status, $headers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns response data that should be serialized.
|
||||
*
|
||||
* @return mixed
|
||||
* Response data that should be serialized.
|
||||
*/
|
||||
public function getResponseData() {
|
||||
return $this->responseData;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue