public static function QueryArticles::create in GraphQL 8.4
@codeCoverageIgnore
Overrides ContainerFactoryPluginInterface::create
File
- examples/
graphql_example/ src/ Plugin/ GraphQL/ DataProducer/ QueryArticles.php, line 47
Class
- QueryArticles
- Plugin annotation @DataProducer( id = "query_articles", name = @Translation("Load articles"), description = @Translation("Loads a list of articles."), produces = @ContextDefinition("any", label = @Translation("Article connection") ), …
Namespace
Drupal\graphql_examples\Plugin\GraphQL\DataProducerCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('entity_type.manager'));
}