You are here

GraphQLInterface.php in GraphQL 8.3

File

src/Annotation/GraphQLInterface.php
View source
<?php

namespace Drupal\graphql\Annotation;


/**
 * Annotation for GraphQL interface plugins.
 *
 * @Annotation
 */
class GraphQLInterface extends GraphQLAnnotationBase {

  /**
   * {@inheritdoc}
   */
  public $pluginType = GRAPHQL_INTERFACE_PLUGIN;

  /**
   * The list of parent interfaces this interface extends.
   *
   * Fields attached to interfaces will be inherited.
   *
   * @var string[]
   */
  public $interfaces = [];

  /**
   * The typed data type of this type.
   *
   * @var string|null
   */
  public $type = NULL;

}

Classes

Namesort descending Description
GraphQLInterface Annotation for GraphQL interface plugins.