public function LogEntry::formatInitMessage in Ultimate Cron 8.2
Format initial message.
File
- src/
Logger/ LogEntry.php, line 200
Class
- LogEntry
- Class for Ultimate Cron log entries.
Namespace
Drupal\ultimate_cron\LoggerCode
public function formatInitMessage() {
if ($this->start_time) {
return $this->init_message ? $this->init_message . ' ' . t('by') . ' ' . $this
->formatUser() : t('N/A');
}
else {
$registered = variable_get('ultimate_cron_hooks_registered', array());
return !empty($registered[$this->name]) ? t('Registered at @datetime', array(
'@datetime' => \Drupal::service('date.formatter')
->format($registered[$this->name], 'custom', 'Y-m-d H:i:s'),
)) : t('N/A');
}
}