public static function DataProducerProxy::create in GraphQL 8.4
Create a new data producer proxy.
Parameters
string $id:
array $mapping:
array $config:
Return value
mixed
1 call to DataProducerProxy::create()
- ResolverBuilder::produce in src/
GraphQL/ ResolverBuilder.php - Instantiate a data producer proxy to lazy resolve a data producer plugin.
File
- src/
Plugin/ GraphQL/ DataProducer/ DataProducerProxy.php, line 121
Class
- DataProducerProxy
- A proxy class that lazy resolves data producers and has a result cache.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducerCode
public static function create($id, array $mapping = [], array $config = []) {
$manager = \Drupal::service('plugin.manager.graphql.data_producer');
return $manager
->proxy($id, $mapping, $config);
}