Skip to content

Commit 2607a0b

Browse files
committed
bugfix
1 parent 5db8bb0 commit 2607a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin/GraphQL/DataProducer/Entity/EntityTranslation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function __construct(array $configuration, $pluginId, $pluginDefinition,
102102
*
103103
* @return \Drupal\Core\Entity\EntityInterface|null
104104
*/
105-
public function resolve(EntityInterface $entity, $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation) {
105+
public function resolve(EntityInterface $entity, $language, ?bool $access, ?AccountInterface $accessUser, ?string $accessOperation, FieldContext $context) {
106106
if ($entity instanceof TranslatableInterface && $entity->isTranslatable() && $entity->hasTranslation($language)) {
107107
$entity = $entity->getTranslation($language);
108108
$entity->addCacheContexts(["static:language:{$language}"]);

0 commit comments

Comments
 (0)