function hacked_preprocess_update_last_check in Hacked! 8.2
Implements hook_preprocess_update_last_check().
File
- ./
hacked.report.inc, line 44
Code
function hacked_preprocess_update_last_check(&$variables) {
$route = \Drupal::routeMatch()
->getRouteName();
if ($route == 'hacked.report') {
$variables['link'] = $variables['link'] = Link::fromTextAndUrl(t('Check manually'), new Url('hacked.manual_status', array(), array(
'query' => \Drupal::destination()
->getAsArray(),
)));
}
}