public function EdgeCursor::resolve in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeCursor.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeCursor::resolve()
- 10.1.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeCursor.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeCursor::resolve()
- 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\EdgeCode
public function resolve(EdgeInterface $edge) {
return $edge
->getCursor();
}