You are here

public function EdgeNode::resolve in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeNode.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeNode::resolve()
  2. 10.0.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeNode.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeNode::resolve()
  3. 10.2.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Edge/EdgeNode.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge\EdgeNode::resolve()

Resolves the value.

Parameters

\Drupal\social_graphql\Wrappers\EdgeInterface $edge: The edge to retrieve the node from.

Return value

mixed The graph node.

File

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

Class

EdgeNode
Returns the node for an edge.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer\Edge

Code

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