public function ResourceWarmer::setResourceTypeRepository in JSON:API Boost 2.x
Same name and namespace in other branches
- 8 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\warmerCode
public function setResourceTypeRepository(ResourceTypeRepositoryInterface $resource_type_repository) {
$this->resourceTypeRepository = $resource_type_repository;
}