protected function WebformScheduledTask::getScheduleState in Webform Scheduled Tasks 8.2
Get the schedule state service.
Return value
\Drupal\webform_scheduled_tasks\SchedulingStateInterface The state service.
File
- src/
Entity/ WebformScheduledTask.php, line 257
Class
- WebformScheduledTask
- Defines the webform schedule entity type.
Namespace
Drupal\webform_scheduled_tasks\EntityCode
protected function getScheduleState() {
if (!isset($this->scheduleState)) {
$this->scheduleState = \Drupal::service('webform_scheduled_tasks.scheduling_state');
}
return $this->scheduleState;
}