for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Routing;
use Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase;
use Youshido\GraphQL\Execution\ResolveInfo;
/**
* @GraphQLField(
* id = "language_switch_link_url",
* secure = true,
* name = "url",
* type = "Url",
* types = {"LanguageSwitchLink"}
* )
*/
class LanguageSwitchLinkUrl extends FieldPluginBase {
getPluginDefinition
* {@inheritdoc}
protected function resolveValues($value, array $args, ResolveInfo $info) {
yield $value['url'];
}