You are here

public function LingotekSettingsController::content in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  2. 8.2 src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  3. 4.0.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  4. 3.0.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  5. 3.1.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  6. 3.2.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  7. 3.3.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  8. 3.5.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  9. 3.6.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  10. 3.7.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
  11. 3.8.x src/Controller/LingotekSettingsController.php \Drupal\lingotek\Controller\LingotekSettingsController::content()
1 string reference to 'LingotekSettingsController::content'
lingotek.routing.yml in ./lingotek.routing.yml
lingotek.routing.yml

File

src/Controller/LingotekSettingsController.php, line 19

Class

LingotekSettingsController

Namespace

Drupal\lingotek\Controller

Code

public function content() {
  if ($redirect = $this
    ->checkSetup()) {
    return $redirect;
  }
  $settings_tab = [
    $this->formBuilder
      ->getForm(LingotekSettingsTabAccountForm::class),
    $this->formBuilder
      ->getForm(LingotekSettingsTabContentForm::class),
    $this->formBuilder
      ->getForm(LingotekSettingsTabConfigurationForm::class),
    $this
      ->getProfileListForm(),
    $this
      ->getIntelligenceMetadataForm(),
    $this->formBuilder
      ->getForm(LingotekSettingsTabPreferencesForm::class),
    $this
      ->getIntegrationsSettingsForm(),
    $this->formBuilder
      ->getForm(LingotekSettingsTabUtilitiesForm::class),
  ];
  return $settings_tab;
}