You are here

public function ProjectVersionClient::getDrupalReleases in Acquia Content Hub 8.2

Returns latest versions of drupal core from D.O.

Parameters

string $drupal_version: Drupal major version installed on system.

Return value

string[] Array of recommended versions.

1 method overrides ProjectVersionClient::getDrupalReleases()
ProjectVersionClientMock::getDrupalReleases in tests/modules/acquia_contenthub_server_test/src/Client/ProjectVersionClientMock.php
Returns latest versions of drupal core from D.O.

File

src/Client/ProjectVersionClient.php, line 69

Class

ProjectVersionClient
Project version client to get latest releases for a project from D.O.

Namespace

Drupal\acquia_contenthub\Client

Code

public function getDrupalReleases(string $drupal_version) : array {
  return $this
    ->getReleaseData('drupal', $drupal_version);
}