You are here

public function ResultSetPluginBase::setScheduledTask in Webform Scheduled Tasks 8.2

Set the scheduled task as context for this plugin.

Parameters

\Drupal\webform_scheduled_tasks\Entity\WebformScheduledTaskInterface $scheduledTask: The scheduled task for context.

Return value

$this

Overrides ScheduledTaskAwarePluginInterface::setScheduledTask

File

src/Plugin/WebformScheduledTasks/ResultSetPluginBase.php, line 138

Class

ResultSetPluginBase
A base class for result set plugins.

Namespace

Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks

Code

public function setScheduledTask(WebformScheduledTaskInterface $scheduledTask) {
  $this->scheduledTask = $scheduledTask;
  return $this;
}