public function PayloadClientMutationId::resolve in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Payload/PayloadClientMutationId.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Payload\PayloadClientMutationId::resolve()
- 10.0.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Payload/PayloadClientMutationId.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Payload\PayloadClientMutationId::resolve()
- 10.1.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Payload/PayloadClientMutationId.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Payload\PayloadClientMutationId::resolve()
Resolves the value for this data producer.
Parameters
\Drupal\social_graphql\GraphQL\Payload\RelayMutationPayloadInterface $payload: The payload to return the client mutation id for.
Return value
null|string The client mutation identifier.
File
- modules/
custom/ social_graphql/ src/ Plugin/ GraphQL/ DataProducer/ Payload/ PayloadClientMutationId.php, line 37
Class
- PayloadClientMutationId
- Returns the client mutation id in a payload.
Namespace
Drupal\social_graphql\Plugin\GraphQL\DataProducer\PayloadCode
public function resolve(RelayMutationPayloadInterface $payload) {
return $payload
->getClientMutationId();
}