interface DataProducerPluginInterface in GraphQL 8.4
Defines the contract of data producer plugins.
Note that this misses a definition of the resolve() method as that has a different signature per plugin.
Hierarchy
- interface \Drupal\Core\Plugin\ContextAwarePluginInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\graphql\Plugin\DataProducerPluginInterface
Expanded class hierarchy of DataProducerPluginInterface
All classes that implement DataProducerPluginInterface
2 files declare their use of DataProducerPluginInterface
- DataProducerPluginBase.php in src/
Plugin/ GraphQL/ DataProducer/ DataProducerPluginBase.php - DataProducerProxy.php in src/
Plugin/ GraphQL/ DataProducer/ DataProducerProxy.php
1 string reference to 'DataProducerPluginInterface'
File
- src/
Plugin/ DataProducerPluginInterface.php, line 16
Namespace
Drupal\graphql\PluginView source
interface DataProducerPluginInterface extends ContextAwarePluginInterface, CacheableDependencyInterface, DerivativeInspectionInterface {
/**
* Resolves the queried field with the given context.
*
* @param \Drupal\graphql\GraphQL\Execution\FieldContext $field
*
* @return \GraphQL\Deferred|mixed
*/
public function resolveField(FieldContext $field);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
ContextAwarePluginInterface:: |
public | function | Gets a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function |
Gets a specific context definition of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function |
Gets the context definitions of the plugin. Overrides ContextAwarePluginInterface:: |
|
ContextAwarePluginInterface:: |
public | function | Gets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Gets the values for all defined contexts. | 1 |
ContextAwarePluginInterface:: |
public | function | Set a context on this plugin. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets a mapping of the expected assignment names to their context names. | 1 |
ContextAwarePluginInterface:: |
public | function | Sets the value for a defined context. | 1 |
ContextAwarePluginInterface:: |
public | function | Validates the set values for the defined contexts. | 1 |
DataProducerPluginInterface:: |
public | function | Resolves the queried field with the given context. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |