Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi committed Jun 16, 2024
1 parent 5030587 commit 2c09f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function resolveField(FieldContext $field) {
if (!method_exists($this, 'resolve')) {
throw new \LogicException('Missing data producer resolve method.');
}
$populateDefaulktValues = $this->configuration['dataproducer_populate_default_values'] ?? TRUE;
$context = $populateDefaulktValues ? $this->getContextValuesWithDefaults() : $this->getContextValues();
$populateDefaultValues = $this->configuration['dataproducer_populate_default_values'] ?? TRUE;
$context = $populateDefaultValues ? $this->getContextValuesWithDefaults() : $this->getContextValues();
return call_user_func_array(
[$this, 'resolve'],
array_values(array_merge($context, [$field]))
Expand Down

0 comments on commit 2c09f29

Please sign in to comment.