You are here

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

Sets the document extractor.

Parameters

\Drupal\jsonapi_resources\Unstable\DocumentExtractor $document_extractor: The document extractor.

File

src/Resource/ResourceBase.php, line 68

Class

ResourceBase
Defines basic functionality for a JSON:API Resource.

Namespace

Drupal\jsonapi_resources\Resource

Code

public function setDocumentExtractor(DocumentExtractor $document_extractor) : void {
  $this->documentExtractor = $document_extractor;
}