protected function WebformScheduledTask::getTime in Webform Scheduled Tasks 8.2
Get the time service.
Return value
\Drupal\Component\Datetime\TimeInterface The time service.
File
- src/
Entity/ WebformScheduledTask.php, line 270
Class
- WebformScheduledTask
- Defines the webform schedule entity type.
Namespace
Drupal\webform_scheduled_tasks\EntityCode
protected function getTime() {
if (!isset($this->time)) {
$this->time = \Drupal::service('datetime.time');
}
return $this->time;
}