You are here

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

Resolves the request.

Parameters

\Drupal\social_graphql\GraphQL\EntityConnection $connection: The connection to return the edges from.

Return value

mixed The edges for the connection.

File

modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Connection/ConnectionEdges.php, line 37

Class

ConnectionEdges
Produces the edges from a connection object.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer\Connection

Code

public function resolve(EntityConnection $connection) {
  return $connection
    ->edges();
}