You are here

public function ScheduledTaskAwarePluginInterface::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

2 methods override ScheduledTaskAwarePluginInterface::setScheduledTask()
ResultSetPluginBase::setScheduledTask in src/Plugin/WebformScheduledTasks/ResultSetPluginBase.php
Set the scheduled task as context for this plugin.
TaskPluginBase::setScheduledTask in src/Plugin/WebformScheduledTasks/TaskPluginBase.php
Set the scheduled task as context for this plugin.

File

src/Plugin/WebformScheduledTasks/ScheduledTaskAwarePluginInterface.php, line 20

Class

ScheduledTaskAwarePluginInterface
Interface for a plugin that can set the scheduled task as context.

Namespace

Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks

Code

public function setScheduledTask(WebformScheduledTaskInterface $scheduledTask);