You are here

public function ConnectionPageInfo::resolve in Open Social 10.3.x

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

Resolves the request.

Parameters

\Drupal\social_graphql\GraphQL\ConnectionInterface $connection: The connection to return the page info for.

Return value

mixed The page info for the connection.

File

modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Connection/ConnectionPageInfo.php, line 38

Class

ConnectionPageInfo
Produces the page info from a connection object.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer\Connection

Code

public function resolve(ConnectionInterface $connection) {
  return $connection
    ->pageInfo();
}