public static function EntityDefinition::create in GraphQL 8.4
@codeCoverageIgnore
Overrides ContainerFactoryPluginInterface::create
File
- src/
Plugin/ GraphQL/ DataProducer/ EntityDefinition/ EntityDefinition.php, line 52
Class
- EntityDefinition
- Gets entity definition for a given entity type.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityDefinitionCode
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'));
}