You are here

interface DataProducerPluginCachingInterface in GraphQL 8.4

Defines cachable data producer plugins.

Hierarchy

Expanded class hierarchy of DataProducerPluginCachingInterface

All classes that implement DataProducerPluginCachingInterface

2 files declare their use of DataProducerPluginCachingInterface
DataProducerProxy.php in src/Plugin/GraphQL/DataProducer/DataProducerProxy.php
EntityLabel.php in src/Plugin/GraphQL/DataProducer/Entity/EntityLabel.php

File

src/Plugin/DataProducerPluginCachingInterface.php, line 8

Namespace

Drupal\graphql\Plugin
View source
interface DataProducerPluginCachingInterface extends DataProducerPluginInterface {

  /**
   * Calculates a cache prefix.
   *
   * @return string|null
   */
  public function edgeCachePrefix();

}

Members

Namesort descending Modifiers Type Description Overrides
CacheableDependencyInterface::getCacheContexts public function The cache contexts associated with this object. 34
CacheableDependencyInterface::getCacheMaxAge public function The maximum age for which this object may be cached. 34
CacheableDependencyInterface::getCacheTags public function The cache tags associated with this object. 27
ContextAwarePluginInterface::getContext public function Gets a defined context. 1
ContextAwarePluginInterface::getContextDefinition public function Gets a specific context definition of the plugin. Overrides ContextAwarePluginInterface::getContextDefinition
ContextAwarePluginInterface::getContextDefinitions public function Gets the context definitions of the plugin. Overrides ContextAwarePluginInterface::getContextDefinitions
ContextAwarePluginInterface::getContextMapping public function Gets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::getContexts public function Gets the defined contexts. 1
ContextAwarePluginInterface::getContextValue public function Gets the value for a defined context. 1
ContextAwarePluginInterface::getContextValues public function Gets the values for all defined contexts. 1
ContextAwarePluginInterface::setContext public function Set a context on this plugin. 1
ContextAwarePluginInterface::setContextMapping public function Sets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::setContextValue public function Sets the value for a defined context. 1
ContextAwarePluginInterface::validateContexts public function Validates the set values for the defined contexts. 1
DataProducerPluginCachingInterface::edgeCachePrefix public function Calculates a cache prefix.
DataProducerPluginInterface::resolveField public function Resolves the queried field with the given context. 1
DerivativeInspectionInterface::getBaseId public function Gets the base_plugin_id of the plugin instance. 1
DerivativeInspectionInterface::getDerivativeId public function Gets the derivative_id of the plugin instance. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2