You are here

public function ResourceBase::setResourceResponseFactory in JSON:API Resources 8

Sets the resource response factory.

Parameters

\Drupal\jsonapi_resources\Unstable\ResourceResponseFactory $resource_response_factory: A JSON:API resource response factory.

File

src/Resource/ResourceBase.php, line 58

Class

ResourceBase
Defines basic functionality for a JSON:API Resource.

Namespace

Drupal\jsonapi_resources\Resource

Code

public function setResourceResponseFactory(ResourceResponseFactory $resource_response_factory) : void {
  $this->resourceResponseFactory = $resource_response_factory;
}