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

Breadcrumb

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

function GitLabDriver::getChangeDate

@inheritDoc

Overrides VcsDriverInterface::getChangeDate

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

public function getChangeDate(string $identifier) : ?\DateTimeImmutable {
    if ($this->gitDriver) {
        return $this->gitDriver
            ->getChangeDate($identifier);
    }
    if (isset($this->commits[$identifier])) {
        return new \DateTimeImmutable($this->commits[$identifier]['committed_date']);
    }
    return null;
}
RSS feed
Powered by Drupal