You are here

public function EntityTranslations::__construct in GraphQL 8.4

EntityTranslation constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/Entity/EntityTranslations.php, line 87

Class

EntityTranslations
Returns all available translations of an entity.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Entity

Code

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