You are here

public function PayloadClientMutationId::resolve in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Payload/PayloadClientMutationId.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Payload\PayloadClientMutationId::resolve()
  2. 10.1.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Payload/PayloadClientMutationId.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Payload\PayloadClientMutationId::resolve()
  3. 10.2.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\Payload

Code

public function resolve(RelayMutationPayloadInterface $payload) {
  return $payload
    ->getClientMutationId();
}