You are here

public function EntityBuffer::__construct in GraphQL 8.4

Same name and namespace in other branches
  1. 8.3 src/GraphQL/Buffers/EntityBuffer.php \Drupal\graphql\GraphQL\Buffers\EntityBuffer::__construct()

EntityBuffer constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

File

src/GraphQL/Buffers/EntityBuffer.php, line 25

Class

EntityBuffer
Collects entity IDs per entity type and loads them all at once in the end.

Namespace

Drupal\graphql\GraphQL\Buffers

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
  $this->entityTypeManager = $entityTypeManager;
}