You are here

protected function LingotekSettingsTabProfilesEditForm::retrieveProfileVaults in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  2. 4.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  3. 3.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  4. 3.1.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  5. 3.2.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  6. 3.3.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::retrieveProfileVaults()
  7. 3.4.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 170
Contains \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm.

Class

LingotekSettingsTabProfilesEditForm
Configure Lingotek

Namespace

Drupal\lingotek\Form

Code

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