public function MutableResourceTypeLinkProviderDeriver::__construct in JSON:API Hypermedia 8
MutableResourceTypeLinkProviderDeriver constructor.
Parameters
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The JSON:API resource type repository.
File
- examples/
Plugin/ Derivative/ MutableResourceTypeLinkProviderDeriver.php, line 29
Class
- MutableResourceTypeLinkProviderDeriver
- Derives plugins that add HATEOAS controls for mutable resources.
Namespace
Drupal\jsonapi_hypermedia\Plugin\DerivativeCode
public function __construct(ResourceTypeRepositoryInterface $resource_type_repository) {
$this->resourceTypeRepository = $resource_type_repository;
}