public static function EntityTranslations::create in GraphQL 8.4
@codeCoverageIgnore
Overrides ContainerFactoryPluginInterface::create
File
- src/
Plugin/ GraphQL/ DataProducer/ Entity/ EntityTranslations.php, line 64
Class
- EntityTranslations
- Returns all available translations of an entity.
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'));
}