protected function LingotekSetupTrait::checkSetup in Lingotek Translation 8
Same name and namespace in other branches
- 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.5.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
mixed Symfony\Component\HttpFoundation\RedirectResponse or FALSE A redirect response object, or FALSE if setup is complete.
10 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 - LingotekManagementController::content in src/
Controller/ LingotekManagementController.php - LingotekManagementForm::buildForm in src/
Form/ LingotekManagementForm.php - Form constructor.
File
- src/
LingotekSetupTrait.php, line 28 - Contains \Drupal\lingotek\LingotekSetupTrait.
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;
}