public function EntityTranslations::__construct in GraphQL 8.3
EntityTranslations constructor.
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
mixed $pluginDefinition: The plugin definition array.
\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.
Overrides PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Entity/ EntityTranslations.php, line 58
Class
- EntityTranslations
- Plugin annotation @GraphQLField( id = "entity_translations", name = "entityTranslations", secure = true, type = "[Entity]", parents = {"Entity"} )
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;
}