for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql\GraphQL\Type;
use Drupal\graphql\GraphQL\CacheableEdgeInterface;
use Drupal\graphql\GraphQL\CacheableEdgeTrait;
use Drupal\graphql\Plugin\GraphQL\Enums\EnumPluginBase;
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceInterface;
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceTrait;
use Youshido\GraphQL\Config\Object\EnumTypeConfig;
use Youshido\GraphQL\Type\Enum\AbstractEnumType;
class EnumType extends AbstractEnumType implements TypeSystemPluginReferenceInterface, CacheableEdgeInterface {
use TypeSystemPluginReferenceTrait;
use CacheableEdgeTrait;
/**
* {@inheritdoc}
*/
public function __construct(EnumPluginBase $plugin, array $config = []) {
$this->plugin = $plugin;
$this->config = new EnumTypeConfig($config, $this);
}
public function getValues() {
return $this->getConfigValue('values', []);