|
15 | 15 | /** |
16 | 16 | * @DataProducer( |
17 | 17 | * id = "entity_load_by_uuid", |
18 | | - * name = @Translation("Load entity by Uuid"), |
19 | | - * description = @Translation("Loads a single entity by Uuid."), |
| 18 | + * name = @Translation("Load entity by uuid"), |
| 19 | + * description = @Translation("Loads a single entity by uuid."), |
20 | 20 | * produces = @ContextDefinition("entity", |
21 | 21 | * label = @Translation("Entity") |
22 | 22 | * ), |
|
32 | 32 | * multiple = TRUE, |
33 | 33 | * required = FALSE |
34 | 34 | * ), |
35 | | - * "bundle" = @ContextDefinition("string", |
| 35 | + * "bundles" = @ContextDefinition("string", |
36 | 36 | * label = @Translation("Entity bundle(s)"), |
37 | 37 | * multiple = TRUE, |
38 | 38 | * required = FALSE |
@@ -120,7 +120,7 @@ public function __construct( |
120 | 120 | * |
121 | 121 | * @return \GraphQL\Deferred |
122 | 122 | */ |
123 | | - public function resolve($type, $uuid, $language = NULL, $bundles = [], FieldContext $context) { |
| 123 | + public function resolve($type, $uuid, $language = NULL, $bundles = NULL, FieldContext $context) { |
124 | 124 | $resolver = $this->entityBuffer->add($type, $uuid); |
125 | 125 |
|
126 | 126 | return new Deferred(function () use ($type, $language, $bundles, $resolver, $context) { |
|
0 commit comments