public function DocumentExtractor::__construct in JSON:API Resources 8
Constructs a new DocumentExtractor object.
Parameters
\Drupal\jsonapi\Serializer\Serializer $serializer: The JSON:API serializer.
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON:API resource type repository.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Unstable/ DocumentExtractor.php, line 68
Class
- DocumentExtractor
- Document extractor for requests.
Namespace
Drupal\jsonapi_resources\UnstableCode
public function __construct(Serializer $serializer, ResourceTypeRepositoryInterface $resource_type_repository, EntityTypeManagerInterface $entity_type_manager) {
$this->documents = new \SplObjectStorage();
$this->serializer = $serializer;
$this->resourceTypeRepository = $resource_type_repository;
$this->entityTypeManager = $entity_type_manager;
}