public function Lingotek::getCommunities in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 4.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.1.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.2.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.3.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.4.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.5.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.6.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.7.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
- 3.8.x src/Lingotek.php \Drupal\lingotek\Lingotek::getCommunities()
Overrides LingotekInterface::getCommunities
1 call to Lingotek::getCommunities()
File
- src/
Lingotek.php, line 100 - Contains \Drupal\lingotek\Lingotek.
Class
Namespace
Drupal\lingotekCode
public function getCommunities($force = FALSE) {
$resources_key = 'account.resources.community';
$data = $this
->get($resources_key);
if (empty($data) || $force) {
$data = $this->api
->getCommunities($force);
$this
->set($resources_key, $data);
}
return $data;
}