File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/Plugin/GraphQL/DataProducer Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33namespace Drupal \graphql \Plugin \GraphQL \DataProducer ;
44
55use Drupal \Component \Plugin \Exception \ContextException ;
6- use Drupal \Component \Plugin \ContextAwarePluginBase ;
6+ use Drupal \Component \Plugin \PluginBase ;
77use Drupal \graphql \GraphQL \Execution \FieldContext ;
88use Drupal \graphql \Plugin \DataProducerPluginInterface ;
99use Drupal \Core \Plugin \ContextAwarePluginTrait ;
1010
1111/**
1212 * Base class for data producers that resolve fields for queries or mutations.
1313 */
14- abstract class DataProducerPluginBase extends ContextAwarePluginBase implements DataProducerPluginInterface {
14+ abstract class DataProducerPluginBase extends PluginBase implements DataProducerPluginInterface {
1515 use DataProducerPluginCachingTrait;
1616 use ContextAwarePluginTrait;
1717
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ public function __construct(
101101 * The entity definition.
102102 */
103103 public function resolve (string $ entity_type ,
104- ?string $ bundle = NULL ,
105- ?string $ field_types = NULL ,
104+ ?string $ bundle ,
105+ ?string $ field_types ,
106106 FieldContext $ field_context
107107 ): EntityTypeInterface {
108108 if ($ bundle ) {
Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ public function __construct(
117117 */
118118 public function resolve (
119119 EntityTypeInterface $ entity_definition ,
120- ?array $ bundle_context = NULL ,
121- ?string $ field_types_context = NULL ,
120+ ?array $ bundle_context ,
121+ ?string $ field_types_context ,
122122 FieldContext $ field_context
123123 ): \Iterator {
124124
You can’t perform that action at this time.
0 commit comments