public static function LingotekProfile::loadByName in Lingotek Translation 7.7
File
- lib/
Drupal/ lingotek/ LingotekProfile.php, line 86 - Defines LingotekProfile
Class
- LingotekProfile
- A class wrapper for Lingotek Profiles
Code
public static function loadByName($profile_name) {
$this
->refresh();
foreach (self::$profiles as $profile_id => $profile) {
if ($profile['name'] == $profile_name) {
return new LingotekProfile($profile_id);
}
}
throw new LingotekException('Unknown profile name: ' . $profile_name);
}