protected function LingotekDashboardController::getDashboardInfo in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 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 255
Class
- LingotekDashboardController
- Returns responses for lingotek module setup routes.
Namespace
Drupal\lingotek\ControllerCode
protected function getDashboardInfo() {
global $base_url, $base_root;
return array(
"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
"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',
"locale" => "en_US",
// FIX: should be currently selected locale
"module_version" => '1.x',
"endpoint_url" => $base_root . $this
->url('lingotek.dashboard_endpoint'),
);
}