public function DataProducerPluginManager::proxy in GraphQL 8.4
Creates a data producer proxy that lazy forwards resolve requests.
The data producer with the given ID is wrapped.
Parameters
string $id:
array $mapping:
array $config:
Return value
\Drupal\graphql\Plugin\GraphQL\DataProducer\DataProducerProxy
File
- src/
Plugin/ DataProducerPluginManager.php, line 99
Class
- DataProducerPluginManager
- Collects data producer plugins that are composed to read and write data.
Namespace
Drupal\graphql\PluginCode
public function proxy($id, array $mapping = [], array $config = []) {
return new DataProducerProxy($id, $mapping, $config, $this, $this->requestStack, $this->contextsManager, $this->resultCacheBackend);
}