interface TaskPluginInterface in Webform Scheduled Tasks 8.2
An interface for scheduled tasks.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\ScheduledTaskNotifyInterface; interface \Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\ScheduledTaskAwarePluginInterface
- interface \Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\TaskPluginInterface
Expanded class hierarchy of TaskPluginInterface
All classes that implement TaskPluginInterface
2 files declare their use of TaskPluginInterface
- TaskRunnerTest.php in tests/
src/ Unit/ TaskRunnerTest.php - WebformScheduledTaskManager.php in src/
WebformScheduledTaskManager.php
File
- src/
Plugin/ WebformScheduledTasks/ TaskPluginInterface.php, line 13
Namespace
Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasksView source
interface TaskPluginInterface extends PluginInspectionInterface, PluginFormInterface, ConfigurableInterface, DependentPluginInterface, ScheduledTaskNotifyInterface, ScheduledTaskAwarePluginInterface {
/**
* Execute a task.
*
* @param \Iterator $submissions
* An iterator of webform submissions to process.
*
* @throws \Exception
* @throws \Drupal\webform_scheduled_tasks\Exception\RetryScheduledTaskException
* @throws \Drupal\webform_scheduled_tasks\Exception\HaltScheduledTaskException
*/
public function executeTask(\Iterator $submissions);
/**
* Get the label of the task.
*
* @return string
* The label of the task.
*/
public function label();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
ScheduledTaskAwarePluginInterface:: |
public | function | Get the scheduled task. | 2 |
ScheduledTaskAwarePluginInterface:: |
public | function | Set the scheduled task as context for this plugin. | 2 |
ScheduledTaskNotifyInterface:: |
public | function | Called when a task fails. | 2 |
ScheduledTaskNotifyInterface:: |
public | function | Called when a task is successful. | 2 |
TaskPluginInterface:: |
public | function | Execute a task. | 4 |
TaskPluginInterface:: |
public | function | Get the label of the task. | 1 |