public function EntityLoadByUuid::__construct in GraphQL 8.4
EntityLoad constructor.
@codeCoverageIgnore
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
array $pluginDefinition: The plugin definition array.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.
\Drupal\graphql\GraphQL\Buffers\EntityUuidBuffer $entityBuffer: The entity buffer service.
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ GraphQL/ DataProducer/ Entity/ EntityLoadByUuid.php, line 117
Class
- EntityLoadByUuid
- Loads an entity by UUID.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityCode
public function __construct(array $configuration, $pluginId, array $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, EntityUuidBuffer $entityBuffer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityTypeManager = $entityTypeManager;
$this->entityRepository = $entityRepository;
$this->entityBuffer = $entityBuffer;
}