public function ResourceBase::setResourceTypeRepository in JSON:API Resources 8
Sets the resource type repository.
Parameters
\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: A resource type repository.
File
- src/
Resource/ ResourceBase.php, line 48
Class
- ResourceBase
- Defines basic functionality for a JSON:API Resource.
Namespace
Drupal\jsonapi_resources\ResourceCode
public function setResourceTypeRepository(ResourceTypeRepositoryInterface $resource_type_repository) : void {
$this->resourceTypeRepository = $resource_type_repository;
}