You are here

public function ResourceResponseValidator::setSchemaFactory in JSON:API 8.2

Same name and namespace in other branches
  1. 8 src/EventSubscriber/ResourceResponseValidator.php \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator::setSchemaFactory()

Injects the schema factory.

Parameters

\Drupal\schemata\SchemaFactory $schema_factory: The schema factory service.

File

src/EventSubscriber/ResourceResponseValidator.php, line 125

Class

ResourceResponseValidator
Response subscriber that validates a JSON:API response.

Namespace

Drupal\jsonapi\EventSubscriber

Code

public function setSchemaFactory(SchemaFactory $schema_factory) {
  $this->schemaFactory = $schema_factory;
}