public function DrupalGatherContentClient::getActiveProjects in GatherContent 8.4
Same name and namespace in other branches
- 8.5 src/DrupalGatherContentClient.php \Drupal\gathercontent\DrupalGatherContentClient::getActiveProjects()
Retrieve all the active projects.
File
- src/
DrupalGatherContentClient.php, line 62
Class
- DrupalGatherContentClient
- Extends the GatherContentClient class with Drupal specific functionality.
Namespace
Drupal\gathercontentCode
public function getActiveProjects($account_id) {
$projects = $this
->projectsGet($account_id);
foreach ($projects as $id => $project) {
if (!$project->active) {
unset($projects[$id]);
}
}
return $projects;
}