public function WebformScheduledTask::getHaltedReason in Webform Scheduled Tasks 8.2
Get the reason a task was halted.
Return value
string The reason a task was halted.
Throws
\Exception Throws an exception if the task has not been halted.
Overrides WebformScheduledTaskInterface::getHaltedReason
File
- src/
Entity/ WebformScheduledTask.php, line 303
Class
- WebformScheduledTask
- Defines the webform schedule entity type.
Namespace
Drupal\webform_scheduled_tasks\EntityCode
public function getHaltedReason() {
return $this
->getScheduleState()
->getHaltedMessage($this);
}