You are here

public function EdgeCursor::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/Edge/EdgeCursor.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeCursor::resolve()
  2. 10.1.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeCursor.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeCursor::resolve()
  3. 10.2.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeCursor.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeCursor::resolve()

Resolves the value for this data producer.

Parameters

\Drupal\social_graphql\Wrappers\EdgeInterface $edge: The edge to return the cursor for.

Return value

mixed The cursor for this edge.

File

modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeCursor.php, line 37

Class

EdgeCursor
Returns the cursor for an edge.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge

Code

public function resolve(EdgeInterface $edge) {
  return $edge
    ->getCursor();
}