public function EntityPublishedInterfaceLinkProviderDeriver::__construct in JSON:API Hypermedia 8
EntityPublishedLinkProvider constructor.
Parameters
\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
- examples/
Plugin/ Derivative/ EntityPublishedInterfaceLinkProviderDeriver.php, line 42
Class
- EntityPublishedInterfaceLinkProviderDeriver
- Class EntityPublishedInterfaceLinkProviderDeriver.
Namespace
Drupal\jsonapi_hypermedia\Plugin\DerivativeCode
public function __construct(ResourceTypeRepositoryInterface $resource_type_repository, EntityTypeManagerInterface $entity_type_manager) {
$this->resourceTypeRepository = $resource_type_repository;
$this->entityTypeManager = $entity_type_manager;
}