You are here

protected function LingotekSetupTrait::checkSetup in Lingotek Translation 3.4.x

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

\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

... See full list

File

src/LingotekSetupTrait.php, line 23

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;
}