You are here

public function HaltExceptionTask::onSuccess in Webform Scheduled Tasks 8.2

Called when a task is successful.

Overrides TaskPluginBase::onSuccess

File

tests/modules/webform_scheduled_tasks_test_types/src/Plugin/WebformScheduledTasks/Task/HaltExceptionTask.php, line 29

Class

HaltExceptionTask
A test plugin that throws an exception.

Namespace

Drupal\webform_scheduled_tasks_test_types\Plugin\WebformScheduledTasks\Task

Code

public function onSuccess() {
  \Drupal::messenger()
    ->addStatus('Run halt_exception_task ::onSuccess');
}