public function WebformScheduledTask::registerFailedTask in Webform Scheduled Tasks 8.2
Register a failed task run.
Overrides WebformScheduledTaskInterface::registerFailedTask
File
- src/
Entity/ WebformScheduledTask.php, line 202
Class
- WebformScheduledTask
- Defines the webform schedule entity type.
Namespace
Drupal\webform_scheduled_tasks\EntityCode
public function registerFailedTask(\Exception $e = NULL) {
$this
->getResultSetPlugin()
->onFailure($this
->getWebform());
$this
->getTaskPlugin()
->onFailure($this
->getWebform());
}