Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GitLabDriver.php

function GitLabDriver::getNextPage

1 call to GitLabDriver::getNextPage()
GitLabDriver::getReferences in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php, line 596

Class

GitLabDriver
Driver for GitLab API, use the Git driver for local checkouts.

Namespace

Composer\Repository\Vcs

Code

protected function getNextPage(Response $response) : ?string {
    $header = $response->getHeader('link');
    $links = explode(',', $header);
    foreach ($links as $link) {
        if (Preg::isMatchStrictGroups('{<(.+?)>; *rel="next"}', $link, $match)) {
            return $match[1];
        }
    }
    return null;
}
RSS feed
Powered by Drupal