$description=(string)t('A change in your site\'s environment has been detected. SPI data cannot be submitted until this is resolved. Please <a href=":config-page">confirm the action you wish to take</a>.');
$variables[':config-page']=$config_url;
$description=(string)t('A change in your site\'s environment has been detected. SPI data cannot be submitted until this is resolved. Please <a href=":config-page">confirm the action you wish to take</a>.',$variables);
$description=(string)t('You are not currently sending site profile data to Acquia Cloud. Please <a href=":config-page">provide a site name</a>.');
$variables[':config-page']=$config_url;
$description=(string)t('You are not currently sending site profile data to Acquia. Please <a href=":config-page">provide a site name</a>.',$variables);
}
// 1.5 days ago.
elseif($ago>=60*60*36){
$severity=REQUIREMENT_WARNING;
$description=(string)t('SPI data has not been reported to the Acquia Subscription for more than a day.');
$description=(string)t('SPI data has not been reported to Acquia for more than a day.');
$description.='<br/>';
}
else{
@@ -71,7 +85,8 @@ function acquia_connector_requirements($phase) {
$description.=(string)t('You are not sending SPI data via Drupal\'s cron system. <a href=":config-page">View Acquia Subscription configuration</a> for details.');
$variables[':config-page']=$config_url;
$description.=(string)t('You are not sending SPI data via Drupal\'s cron system. <a href=":config-page">View Acquia Subscription configuration</a> for details.',$variables);
$description.='<br/>';
}
else{
@@ -79,34 +94,26 @@ function acquia_connector_requirements($phase) {
if($config->get('cron_interval_override')){
$interval=$config->get('cron_interval_override');
}
$description.=(string)t('SPI data will be sent once every @interval minutes once cron is called.');
$variables['@interval']=$interval;
$description.=(string)t('SPI data will be sent once every @interval minutes once cron is called.',$variables);
$description.=' ';
}
$description.=(string)t('You can <a href=":spi-send">manually send SPI data</a>.');
$description.=(string)t('You can <a href=":spi-send">manually send SPI data</a>.',$variables);
}
if($last_sent==0){
$value=(string)t('SPI data has not been sent');
}
else{
$value=(string)t('Last sent @time ago',array('@time'=>\Drupal::service('date.formatter')->formatInterval($ago)));
$value=(string)t('Last sent @time ago',['@time'=>\Drupal::service('date.formatter')->formatInterval($ago)]);
'description'=>t('You did not complete your signup to the Acquia Subscription. You can provide the subscription identifier and the subscription key at the <a href=":settings">Acquia settings</a> page or try to <a href=":refresh-status">manually refresh the subscription status</a>.',[':settings'=>Url::fromRoute('acquia_connector.settings')->toString(),':refresh-status'=>Url::fromRoute('acquia_connector.refresh_status')->toString()]),
);
'description'=>t('You did not complete your signup to Acquia. You can provide the subscription identifier and the subscription key at the <a href=":settings">Acquia settings</a> page or try to <a href=":refresh-status">manually refresh the subscription status</a>.',[':settings'=>Url::fromRoute('acquia_connector.settings')->toString(),':refresh-status'=>Url::fromRoute('acquia_connector.refresh_status')->toString()]),
'description'=>t('Your subscription is expired or you are using an invalid identifier and key pair. You can check the subscription identifier and the subscription key at the <a href=":settings">Acquia settings</a> page. Check <a href=":acquia-network">your subscription on the Acquia Subscription</a> for further status information.',[':settings'=>Url::fromRoute('acquia_connector.settings')->toString(),':acquia-network'=>$href]),
$description=(string)t('Custom tests within the following module(s) have failed validation and will not be sent: %modules. <br/>Please check the error logs for more information regarding how to pass validation or <a href=":validate">perform another validation check</a>. A validation check can also be performed via the Drush command, "spi-test-validate".');
$description=t('Custom tests within the following module(s) have failed validation and will not be sent: %modules. <br/>Please check the error logs for more information regarding how to pass validation or <a href=":validate">perform another validation check</a>. A validation check can also be performed via the Drush command, "spi-test-validate".',$variables);