You are here

public static function LingotekProfile::create in Lingotek Translation 7.7

1 call to LingotekProfile::create()
lingotek_save_config_profile in ./lingotek.admin.inc

File

lib/Drupal/lingotek/LingotekProfile.php, line 58
Defines LingotekProfile

Class

LingotekProfile
A class wrapper for Lingotek Profiles

Code

public static function create($profile_id, array $profile_attributes) {
  if (isset(self::$profiles[$profile_id])) {
    throw new LingotekException('Unable to create profile "' . $profile_id . '": profile already exists.');
  }
  return new LingotekProfile($profile_id, $profile_attributes);
}