Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ModifiedResourceResponse.php

function ModifiedResourceResponse::__construct

Constructor for ModifiedResourceResponse objects.

Parameters

mixed $data: Response data that should be serialized.

int $status: The response status code.

array $headers: An array of response headers.

Overrides Response::__construct

File

core/modules/rest/src/ModifiedResourceResponse.php, line 29

Class

ModifiedResourceResponse
A response that does not contain cacheability metadata.

Namespace

Drupal\rest

Code

public function __construct($data = NULL, $status = 200, $headers = []) {
    $this->responseData = $data;
    parent::__construct('', $status, $headers);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal