You are here

protected function LingotekSettingsTabProfilesEditForm::updateCustomProfile in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  2. 4.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  3. 3.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  4. 3.1.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  5. 3.2.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  6. 3.3.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  7. 3.4.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  8. 3.5.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  9. 3.6.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  10. 3.7.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
  11. 3.8.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::updateCustomProfile()
1 call to LingotekSettingsTabProfilesEditForm::updateCustomProfile()
LingotekSettingsTabProfilesEditForm::submitForm in src/Form/LingotekSettingsTabProfilesEditForm.php
Form submission handler.

File

src/Form/LingotekSettingsTabProfilesEditForm.php, line 211
Contains \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm.

Class

LingotekSettingsTabProfilesEditForm
Configure Lingotek

Namespace

Drupal\lingotek\Form

Code

protected function updateCustomProfile($name, $auto_upload, $auto_download) {

  /** @var LingotekProfile $current_profile */
  $current_profile = $this->profile;
  $current_profile
    ->set('label', $name);
  $current_profile
    ->setAutomaticDownload($auto_download);
  $current_profile
    ->setAutomaticUpload($auto_upload);
  $current_profile
    ->save();
}