Mercurial > hg > isophonics-drupal-site
view core/modules/rest/src/ModifiedResourceResponse.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\rest; use Symfony\Component\HttpFoundation\Response; /** * A response that does not contain cacheability metadata. * * Used when resources are modified by a request: responses to unsafe requests * (POST/PATCH/DELETE) can never be cached. * * @see \Drupal\rest\ResourceResponse */ class ModifiedResourceResponse extends Response implements ResourceResponseInterface { use ResourceResponseTrait; /** * Constructor for ModifiedResourceResponse objects. * * @param mixed $data * Response data that should be serialized. * @param int $status * The response status code. * @param array $headers * An array of response headers. */ public function __construct($data = NULL, $status = 200, $headers = []) { $this->responseData = $data; parent::__construct('', $status, $headers); } }