You are here

protected function LingotekSettingsTabProfilesEditForm::retrieveEnabledSettings in Lingotek Translation 8

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

File

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

Class

LingotekSettingsTabProfilesEditForm
Configure Lingotek

Namespace

Drupal\lingotek\Form

Code

protected function retrieveEnabledSettings() {

  // Adding a new profile
  if (!$this->profile) {
    $this->auto_upload_disabled = FALSE;
    $this->auto_download_disabled = FALSE;
    $this->profile_name_disabled = FALSE;
  }
  elseif (!$this->is_custom_id) {
    $this->auto_upload_disabled = TRUE;
    $this->auto_download_disabled = TRUE;
    $this->profile_name_disabled = TRUE;
  }
  elseif ($this->is_custom_id) {
    $this->auto_upload_disabled = FALSE;
    $this->auto_download_disabled = FALSE;
    $this->profile_name_disabled = FALSE;
  }
}