You are here

public function ConnectionQueryHelperInterface::getCursorObject in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getCursorObject()
  2. 10.1.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getCursorObject()
  3. 10.2.x modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php \Drupal\social_graphql\GraphQL\ConnectionQueryHelperInterface::getCursorObject()

Returns a cursor object for a given cursor string.

Parameters

string $cursor: A cursor string created obtained from an edge for the connection.

Return value

\Drupal\social_graphql\Wrappers\Cursor|null An object with the cursor information or null if it was an invalid cursor.

File

modules/custom/social_graphql/src/GraphQL/ConnectionQueryHelperInterface.php, line 39

Class

ConnectionQueryHelperInterface
Provides an interface for a connection query helper.

Namespace

Drupal\social_graphql\GraphQL

Code

public function getCursorObject(string $cursor) : ?Cursor;