public function ThunderBreadcrumbSchemaExtension::registerResolvers in Thunder 6.2.x
Overrides ThunderSchemaExtensionPluginBase::registerResolvers
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ SchemaExtension/ ThunderBreadcrumbSchemaExtension.php, line 22
Class
- ThunderBreadcrumbSchemaExtension
- The menu schema extension.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\SchemaExtensionCode
public function registerResolvers(ResolverRegistryInterface $registry) {
parent::registerResolvers($registry);
$this
->addFieldResolverIfNotExists('Query', 'breadcrumb', $this->builder
->produce('thunder_entity_sub_request')
->map('path', $this->builder
->fromArgument('path'))
->map('key', $this->builder
->fromValue('breadcrumb')));
}