public function EntityTranslation::__construct in GraphQL 8.3
EntityTranslation constructor.
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 PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Entity/ EntityTranslation.php, line 61
Class
- EntityTranslation
- Plugin annotation @GraphQLField( id = "entity_translation", secure = true, name = "entityTranslation", type = "Entity", parents = {"Entity"}, arguments = { "language" = "LanguageId!" } )
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\EntityCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityRepositoryInterface $entityRepository) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityRepository = $entityRepository;
}