You are here

protected function ContributeManager::getOrganizationLogo in Contribute 8

Get an organization's logo from Drupal.org.

Return value

string An organization's logo from Drupal.org.

1 call to ContributeManager::getOrganizationLogo()
ContributeManager::getAccount in src/ContributeManager.php
Get account status.

File

src/ContributeManager.php, line 562

Class

ContributeManager
Class ContributeManager.

Namespace

Drupal\contribute

Code

protected function getOrganizationLogo() {
  $organization = $this
    ->getOrganization();
  if (!$organization || !isset($organization['field_logo']['file']['uri'])) {
    return '';
  }
  $data = $this
    ->get($organization['field_logo']['file']['uri'] . '.json');
  return $data['url'];
}