public function ResourceWarmer::setEntityToJsonapi in JSON:API Boost 8
Same name and namespace in other branches
- 2.x src/Plugin/warmer/ResourceWarmer.php \Drupal\jsonapi_boost\Plugin\warmer\ResourceWarmer::setEntityToJsonapi()
Injects the entity to JSON:API service.
Parameters
\Drupal\jsonapi_extras\EntityToJsonApi $entitity_to_jsonapi: The entity type manager.
File
- src/
Plugin/ warmer/ ResourceWarmer.php, line 93
Class
- ResourceWarmer
- Warms JSON:API resources.
Namespace
Drupal\jsonapi_boost\Plugin\warmerCode
public function setEntityToJsonapi(EntityToJsonApi $entitity_to_jsonapi) {
$this->entityToJsonapi = $entitity_to_jsonapi;
}