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_title",
* secure = true,
* name = "title",
* type = "String",
* types = {"LanguageSwitchLink"}
* )
*/
class LanguageSwitchLinkTitle extends FieldPluginBase {
getPluginDefinition
* {@inheritdoc}
protected function resolveValues($value, array $args, ResolveInfo $info) {
yield $value['title'];
}