You are here

public function WebformScheduledTaskInterface::halt in Webform Scheduled Tasks 8.2

Halt a scheduled task and provide a reason.

NOTE: this will take effect immediately and does not require an entity save.

Parameters

string $reason: The reason the task has been halted.

Return value

$this

1 method overrides WebformScheduledTaskInterface::halt()
WebformScheduledTask::halt in src/Entity/WebformScheduledTask.php
Halt a scheduled task and provide a reason.

File

src/Entity/WebformScheduledTaskInterface.php, line 95

Class

WebformScheduledTaskInterface
An interface for the scheduled tasks.

Namespace

Drupal\webform_scheduled_tasks\Entity

Code

public function halt($reason = '');