public function LingotekSetupController::accountPage in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8 src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 8.2 src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 4.0.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.0.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.1.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.2.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.3.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.4.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.5.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.7.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
- 3.8.x src/Controller/LingotekSetupController.php \Drupal\lingotek\Controller\LingotekSetupController::accountPage()
Presents a connection page to Lingotek Services
Return value
array The connection form.
1 string reference to 'LingotekSetupController::accountPage'
File
- src/
Controller/ LingotekSetupController.php, line 24
Class
- LingotekSetupController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
public function accountPage() {
if ($this
->setupCompleted()) {
return $this->formBuilder
->getForm(LingotekSettingsAccountForm::class);
}
return [
'#type' => 'markup',
'markup' => $this->formBuilder
->getForm(LingotekSettingsConnectForm::class),
];
}