File tree Expand file tree Collapse file tree
src/Plugin/GraphQL/DataProducer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55use Drupal \Component \Plugin \Exception \ContextException ;
66use Drupal \Component \Plugin \PluginBase ;
7+ use Drupal \Core \DependencyInjection \DependencySerializationTrait ;
78use Drupal \graphql \GraphQL \Execution \FieldContext ;
89use Drupal \graphql \Plugin \DataProducerPluginInterface ;
910use Drupal \Core \Plugin \ContextAwarePluginTrait ;
11+ use Drupal \Core \StringTranslation \StringTranslationTrait ;
12+ use Drupal \Core \TypedData \TypedDataTrait ;
1013
1114/**
1215 * Base class for data producers that resolve fields for queries or mutations.
1316 */
1417abstract class DataProducerPluginBase extends PluginBase implements DataProducerPluginInterface {
1518 use DataProducerPluginCachingTrait;
1619 use ContextAwarePluginTrait;
20+ use TypedDataTrait;
21+ use StringTranslationTrait;
22+ use DependencySerializationTrait;
1723
1824 /**
1925 * {@inheritdoc}
You can’t perform that action at this time.
0 commit comments