public function AccessUnpublishedRouteLoad::resolveField in Access unpublished 8
Resolves the queried field with the given context.
Parameters
\Drupal\graphql\GraphQL\Execution\FieldContext $field:
Return value
\GraphQL\Deferred|mixed
Overrides DataProducerPluginBase::resolveField
File
- src/
Plugin/ GraphQL/ DataProducer/ AccessUnpublishedRouteLoad.php, line 76
Class
- AccessUnpublishedRouteLoad
- Loads a route with an optional token.
Namespace
Drupal\access_unpublished\Plugin\GraphQL\DataProducerCode
public function resolveField(FieldContext $field) {
$context = $this
->getContextValues();
return call_user_func_array([
$this,
'resolveUnpublished',
], array_merge($context, [
$field,
]));
}