public function EntityTranslation::__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/ EntityTranslation.php, line 87
Class
- EntityTranslation
- Returns the entity in a given language.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityRepositoryInterface $entityRepository) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityRepository = $entityRepository;
}