public function DrupalGapController::drupalStatus in DrupalGap 8.2
Checks the current status and add help link.
Return value
array An array to be rendered with the id for the div where we will check the status and an information link.
1 call to DrupalGapController::drupalStatus()
- DrupalGapController::drupalgapConfig in src/
Controller/ DrupalGapController.php - Return the DrupalGap configuration page.
File
- src/
Controller/ DrupalGapController.php, line 45 - Contains \Drupal\drupalgap\Controller\DrupalGapController.
Class
- DrupalGapController
- Returns responses for DrupalGap module routes.
Namespace
Drupal\drupalgap\ControllerCode
public function drupalStatus() {
// Set div id for system connect status message box.
$div_id = 'drupalgap-system-connect-status-message';
// Build more info text and help link string.
$msg = t('Please refer to the <a href="@help_page">DrupalGap Module Help Page</a> for more information.', array(
'@help_page' => 'admin/help/drupalgap',
));
// Create output fieldsets.
$output = array(
'drupalgap_system_connect_status' => array(
'#theme' => 'fieldset',
'#title' => t('System Connect Status'),
'#description' => '<div id="' . $div_id . '"> </div>',
),
'drupalgap_information' => array(
'#theme' => 'fieldset',
'#title' => t('More Information'),
'#description' => "<p>{$msg}</p>",
),
);
return $output;
}