interface PersistedQueryPluginInterface in GraphQL 8.4
Defines plugins that represent persisted GraphQL queries.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\graphql\Plugin\PersistedQueryPluginInterface
Expanded class hierarchy of PersistedQueryPluginInterface
All classes that implement PersistedQueryPluginInterface
3 files declare their use of PersistedQueryPluginInterface
- PersistedQueryPluginBase.php in src/
PersistedQuery/ PersistedQueryPluginBase.php - Server.php in src/
Entity/ Server.php - ServerInterface.php in src/
Entity/ ServerInterface.php
1 string reference to 'PersistedQueryPluginInterface'
File
- src/
Plugin/ PersistedQueryPluginInterface.php, line 12
Namespace
Drupal\graphql\PluginView source
interface PersistedQueryPluginInterface extends ConfigurableInterface, PluginInspectionInterface {
/**
* Returns a query if this plugin has it.
*
* @param string $id
* ID of the persisted query.
* @param \GraphQL\Server\OperationParams $operation
* The operation with parameters.
*
* @return string|null
* The actual GraphQL query, or NULL if this plugin does not support a query
* with that ID.
*/
public function getQuery($id, OperationParams $operation);
/**
* Returns the label for use on the administration pages.
*
* @return string
* The administration label.
*/
public function label();
/**
* Returns the plugin's description.
*
* @return string
* The plugin description.
*/
public function getDescription();
/**
* Returns the weight of this plugin instance.
*
* @return int
* The default weight for the given stage.
*/
public function getWeight();
/**
* Sets the weight for this plugin instance.
*
* @param int $weight
* The weight.
*/
public function setWeight($weight);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
PersistedQueryPluginInterface:: |
public | function | Returns the plugin's description. | 1 |
PersistedQueryPluginInterface:: |
public | function | Returns a query if this plugin has it. | 3 |
PersistedQueryPluginInterface:: |
public | function | Returns the weight of this plugin instance. | 1 |
PersistedQueryPluginInterface:: |
public | function | Returns the label for use on the administration pages. | 1 |
PersistedQueryPluginInterface:: |
public | function | Sets the weight for this 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 |