From 2c09f29dc4ec58e7714f0a1008ee281251dc840d Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sun, 16 Jun 2024 11:52:38 +0200 Subject: [PATCH] fix typo --- src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php b/src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php index b21348cbc..945d9c571 100644 --- a/src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php +++ b/src/Plugin/GraphQL/DataProducer/DataProducerPluginBase.php @@ -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]))