protected function LingotekDashboardController::getDashboardInfo in Lingotek Translation 8.2
Same name and namespace in other branches
- 8 src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 4.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.0.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.1.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.2.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.3.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.4.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.5.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.6.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.7.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
- 3.8.x src/Controller/LingotekDashboardController.php \Drupal\lingotek\Controller\LingotekDashboardController::getDashboardInfo()
1 call to LingotekDashboardController::getDashboardInfo()
- LingotekDashboardController::dashboardPage in src/
Controller/ LingotekDashboardController.php - Presents a dashboard overview page of translation status through Lingotek.
File
- src/
Controller/ LingotekDashboardController.php, line 246
Class
- LingotekDashboardController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
protected function getDashboardInfo() {
global $base_url, $base_root;
return [
"community_id" => $this->lingotek
->get('default.community'),
"external_id" => $this->lingotek
->get('account.login_id'),
"vault_id" => $this->lingotek
->get('default.vault'),
"workflow_id" => $this->lingotek
->get('default.workflow'),
"project_id" => $this->lingotek
->get('default.project'),
"first_name" => 'Drupal User',
"last_name" => '',
"email" => $this->lingotek
->get('account.login_id'),
// CMS data that will be used for building the dashboard with JS.
"cms_site_id" => $base_url,
"cms_site_key" => $base_url,
"cms_site_name" => 'Drupal Site',
"cms_type" => 'Drupal',
"cms_version" => 'VERSION HERE',
"cms_tag" => 'CMS TAG HERE',
// FIX: should be the currently selected locale
"locale" => "en_US",
"module_version" => '1.x',
"endpoint_url" => Url::fromRoute('lingotek.dashboard_endpoint')
->toString(),
];
}