You are here

protected function LingotekSettingsTabProfilesEditForm::retrieveProfileVaults in Lingotek Translation 3.4.x

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

File

src/Form/LingotekSettingsTabProfilesEditForm.php, line 175

Class

LingotekSettingsTabProfilesEditForm
Configure Lingotek

Namespace

Drupal\lingotek\Form

Code

protected function retrieveProfileVaults() {
  $personal_vault = [];
  $personal_vault_key = $this
    ->config('lingotek.settings')
    ->get('default.vault');
  $community_vault = $this
    ->config('lingotek.settings')
    ->get('account.resources.vault');
  if (isset($community_vault[$personal_vault_key])) {
    $personal_vault = [
      $personal_vault_key => $community_vault[$personal_vault_key],
    ];
  }
  $this->profile_vaults = [
    'Personal Vaults' => $personal_vault,
    'Community Vaults' => $community_vault,
  ];
}