public function GraphQLAnnotationBase::__construct in GraphQL 8.3
GraphQLAnnotationBase constructor.
Parameters
$values: The plugin annotation values.
Throws
\Doctrine\Common\Annotations\AnnotationException In case of missing required annotation values.
Overrides Plugin::__construct
File
- src/
Annotation/ GraphQLAnnotationBase.php, line 102
Class
- GraphQLAnnotationBase
- Annotation for GraphQL input type plugins.
Namespace
Drupal\graphql\AnnotationCode
public function __construct($values) {
if (!array_key_exists('id', $values) || !$values['id']) {
throw new AnnotationException('GraphQL plugin is missing an "id" property.');
}
parent::__construct($values);
}