You are here

protected function LingotekSettingsContentSingleForm::retrieveProfileOptions in Lingotek Translation 3.4.x

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

File

src/Form/LingotekSettingsContentSingleForm.php, line 191

Class

LingotekSettingsContentSingleForm
Configure Lingotek

Namespace

Drupal\lingotek\Form

Code

protected function retrieveProfileOptions() {
  $this->profiles = \Drupal::entityTypeManager()
    ->getListBuilder('lingotek_profile')
    ->load();
  foreach ($this->profiles as $profile) {
    $this->profile_options[$profile
      ->id()] = $profile
      ->label();
  }
}