public function CommentSchemaExtension::registerResolvers in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_comment/src/Plugin/GraphQL/SchemaExtension/CommentSchemaExtension.php \Drupal\social_comment\Plugin\GraphQL\SchemaExtension\CommentSchemaExtension::registerResolvers()
File
- modules/
social_features/ social_comment/ src/ Plugin/ GraphQL/ SchemaExtension/ CommentSchemaExtension.php, line 24
Class
- CommentSchemaExtension
- Adds comment data to the Open Social GraphQL API.
Namespace
Drupal\social_comment\Plugin\GraphQL\SchemaExtensionCode
public function registerResolvers(ResolverRegistryInterface $registry) {
$builder = new ResolverBuilder();
$this
->addQueryFields($registry, $builder);
$this
->addCommentFields($registry, $builder);
}