You are here

public function SchemataSchemaNormalizer::__construct in JSON:API Extras 8.3

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

Constructs a SchemataSchemaNormalizer object.

Parameters

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

File

src/Normalizer/SchemataSchemaNormalizer.php, line 27

Class

SchemataSchemaNormalizer
Applies JSONAPI Extras attribute overrides to entity schemas.

Namespace

Drupal\jsonapi_extras\Normalizer

Code

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