You are here

public function LingotekSettingsController::getIntegrationsSettingsForm in Lingotek Translation 3.5.x

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

File

src/Controller/LingotekSettingsController.php, line 73

Class

LingotekSettingsController

Namespace

Drupal\lingotek\Controller

Code

public function getIntegrationsSettingsForm() {
  $original_form = $this->formBuilder
    ->getForm(LingotekSettingsTabIntegrationsForm::class);
  if (isset($original_form['contrib'])) {
    $form['integrations_wrapper'] = [
      '#type' => 'details',
      '#title' => $this
        ->t('Integrations Settings'),
    ];
    $form['integrations_wrapper']['form'] = $original_form;
    return $form;
  }
  else {
    return NULL;
  }
}