public function Lingotek::getResources in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8 src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 8.2 src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 4.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.0.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.1.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.2.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.3.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.5.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.6.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.7.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
- 3.8.x src/Lingotek.php \Drupal\lingotek\Lingotek::getResources()
Gets the account related resources.
Parameters
bool $force: Flag indicating if it must be forced to request from the API. If false, will use local cached data.
Return value
array|bool Array with resources info. FALSE in case of error. The keys are community, project, vault, workflow, and filter. Each of them is a nested array with key the id, and value the name of the resource.
Overrides LingotekInterface::getResources
File
- src/
Lingotek.php, line 150
Class
- Lingotek
- The connecting class between Drupal and Lingotek
Namespace
Drupal\lingotekCode
public function getResources($force = FALSE) {
return [
'community' => $this
->getCommunities($force),
'project' => $this
->getProjects($force),
'vault' => $this
->getVaults($force),
'workflow' => $this
->getWorkflows($force),
'filter' => $this
->getFilters($force),
];
}