From b72db61390e1160fb3fec28140c37d1fdf6455e1 Mon Sep 17 00:00:00 2001 From: Pasqualle Date: Mon, 10 Dec 2018 22:13:26 +0100 Subject: [PATCH] $tags is CacheableValue --- src/Plugin/GraphQL/Fields/InternalUrl/Metatags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/GraphQL/Fields/InternalUrl/Metatags.php b/src/Plugin/GraphQL/Fields/InternalUrl/Metatags.php index f02e54b..cf796ba 100644 --- a/src/Plugin/GraphQL/Fields/InternalUrl/Metatags.php +++ b/src/Plugin/GraphQL/Fields/InternalUrl/Metatags.php @@ -81,7 +81,7 @@ protected function resolveValues($value, array $args, ResolveContext $context, R return function ($value, array $args, ResolveContext $context, ResolveInfo $info) use ($resolve) { $tags = $resolve(); - foreach ($tags as $tag) { + foreach ($tags->getValue() as $tag) { yield $tag; } };