You are here

public function ResourceWarmer::setResourceTypeRepository in JSON:API Boost 8

Same name and namespace in other branches
  1. 2.x src/Plugin/warmer/ResourceWarmer.php \Drupal\jsonapi_boost\Plugin\warmer\ResourceWarmer::setResourceTypeRepository()

Injects the resource type repository.

Parameters

\Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository: The entity type manager.

File

src/Plugin/warmer/ResourceWarmer.php, line 83

Class

ResourceWarmer
Warms JSON:API resources.

Namespace

Drupal\jsonapi_boost\Plugin\warmer

Code

public function setResourceTypeRepository(ResourceTypeRepositoryInterface $resource_type_repository) {
  $this->resourceTypeRepository = $resource_type_repository;
}