for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Images;
use Drupal\graphql\GraphQL\Execution\ResolveContext;
use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
use GraphQL\Type\Definition\ResolveInfo;
/**
* Retrieve the image url.
*
* @GraphQLField(
* id = "image_style_url",
* secure = true,
* name = "url",
* type = "String",
* parents = {"ImageResource"},
* provider = "image"
* )
*/
class ImageResourceUrl extends FieldPluginBase {
* {@inheritdoc}
protected function resolveValues($value, array $args, ResolveContext $context, ResolveInfo $info) {
yield $value['url'];
}