You are here

public function EntityQueryEntities::__construct in GraphQL 8.3

EntityQueryEntities constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $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\EntityBuffer $entityBuffer: The entity buffer service.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/EntityQuery/EntityQueryEntities.php, line 89

Class

EntityQueryEntities
Retrieve the entity result set of an entity query.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\EntityQuery

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, EntityBuffer $entityBuffer) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityRepository = $entityRepository;
  $this->entityBuffer = $entityBuffer;
}