You are here

public function DrupalGatherContentClient::projectStatusesGet in GatherContent 8.5

File

src/DrupalGatherContentClient.php, line 222

Class

DrupalGatherContentClient
Extends the GatherContentClient class with Drupal specific functionality.

Namespace

Drupal\gathercontent

Code

public function projectStatusesGet($projectId) {
  $statuses = parent::projectStatusesGet($projectId);
  if (empty($statuses['data'])) {
    return $statuses;
  }

  // Add the ID as the array key.
  $statuses['data'] = $this
    ->reKeyArray($statuses['data'], 'id');
  return $statuses;
}