You are here

public function ShsCacheableJsonResponse::__construct in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x src/Cache/ShsCacheableJsonResponse.php \Drupal\shs\Cache\ShsCacheableJsonResponse::__construct()

File

src/Cache/ShsCacheableJsonResponse.php, line 23

Class

ShsCacheableJsonResponse
A cacheable JsonResponse that returns alterable data for SHS.

Namespace

Drupal\shs\Cache

Code

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