You are here

protected function LingotekSetupTrait::checkSetup in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  2. 4.0.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  3. 3.0.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  4. 3.1.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  5. 3.2.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  6. 3.3.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  7. 3.4.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  8. 3.5.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  9. 3.6.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  10. 3.7.x src/LingotekSetupTrait.php \Drupal\lingotek\LingotekSetupTrait::checkSetup()
  11. 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.

... See full list

File

src/LingotekSetupTrait.php, line 28
Contains \Drupal\lingotek\LingotekSetupTrait.

Class

LingotekSetupTrait
Useful methods for checking if Lingotek is already setup.

Namespace

Drupal\lingotek

Code

protected function checkSetup() {
  if (!$this
    ->setupCompleted()) {
    return $this
      ->redirect('lingotek.setup_account');
  }
  return FALSE;
}