public static function EntityTranslation::create in GraphQL 8.4
@codeCoverageIgnore
Overrides ContainerFactoryPluginInterface::create
File
- src/
Plugin/ GraphQL/ DataProducer/ Entity/ EntityTranslation.php, line 64
Class
- EntityTranslation
- Returns the entity in a given language.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityCode
public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) {
return new static($configuration, $pluginId, $pluginDefinition, $container
->get('entity.repository'));
}