You are here

public function LingotekSetupController::accountPage in Lingotek Translation 8

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

Presents a connection page to Lingotek Services

Parameters

\Symfony\Component\HttpFoundation\Request $request: The page request.

Return value

array The connection form.

1 string reference to 'LingotekSetupController::accountPage'
lingotek.routing.yml in ./lingotek.routing.yml
lingotek.routing.yml

File

src/Controller/LingotekSetupController.php, line 21

Class

LingotekSetupController
Returns responses for lingotek module setup routes.

Namespace

Drupal\lingotek\Controller

Code

public function accountPage() {
  if ($this
    ->setupCompleted()) {
    return $this
      ->getLingotekForm('LingotekSettingsAccountForm');
  }
  return array(
    '#type' => 'markup',
    'markup' => $this
      ->getLingotekForm('LingotekSettingsConnectForm'),
  );
}