You are here

public function RouteEntity::__construct in GraphQL 8.4

RouteEntity constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition array.

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

\Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer: The entity buffer service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php, line 86

Class

RouteEntity
Loads the entity associated with the current URL.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Routing

Code

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