You are here

public function SchemaFieldDefinitionNormalizer::__construct in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 8.3 src/Normalizer/SchemaFieldDefinitionNormalizer.php \Drupal\jsonapi_extras\Normalizer\SchemaFieldDefinitionNormalizer::__construct()
  2. 8 src/Normalizer/SchemaFieldDefinitionNormalizer.php \Drupal\jsonapi_extras\Normalizer\SchemaFieldDefinitionNormalizer::__construct()

Constructs a SchemaFieldDefinitionNormalizer object.

Parameters

\Drupal\jsonapi\ResourceType\ResourceTypeRepository $resource_type_repository: A resource type repository.

File

src/Normalizer/SchemaFieldDefinitionNormalizer.php, line 27

Class

SchemaFieldDefinitionNormalizer
Applies field enhancer schema changes to field schema.

Namespace

Drupal\jsonapi_extras\Normalizer

Code

public function __construct(ResourceTypeRepository $resource_type_repository) {
  $this->resourceTypeRepository = $resource_type_repository;
}