protected function LingotekSetupTrait::checkSetup in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8 src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 8.2 src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 4.0.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.0.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.1.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.2.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.3.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.4.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.6.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.7.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
- 3.8.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
Verify the Lingotek Translation module has been properly initialized.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse|false A redirect response object, or FALSE if setup is complete.
11 calls to LingotekSetupTrait::checkSetup()
- LingotekConfigManagementForm::buildForm in src/
Form/ LingotekConfigManagementForm.php - Form constructor.
- LingotekDashboardController::dashboardPage in src/
Controller/ LingotekDashboardController.php - Presents a dashboard overview page of translation status through Lingotek.
- LingotekDashboardController::endpoint in src/
Controller/ LingotekDashboardController.php - LingotekInterfaceTranslationForm::buildForm in src/
Form/ LingotekInterfaceTranslationForm.php - Form constructor.
- LingotekManagementController::content in src/
Controller/ LingotekManagementController.php
File
- src/
LingotekSetupTrait.php, line 23
Class
- LingotekSetupTrait
- Useful methods for checking if Lingotek is already setup.
Namespace
Drupal\lingotekCode
protected function checkSetup() {
if (!$this
->setupCompleted()) {
return $this
->redirect('lingotek.setup_account');
}
return FALSE;
}