You are here

protected function WebformScheduledTaskForm::validatePluginForm in Webform Scheduled Tasks 8.2

Validate a plugin form.

Parameters

array $plugin_form: The plugin form.

\Drupal\Core\Plugin\PluginFormInterface $plugin: The plugin.

array $parent_form: The parent form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

1 call to WebformScheduledTaskForm::validatePluginForm()
WebformScheduledTaskForm::validateForm in src/Form/WebformScheduledTaskForm.php
Form validation handler.

File

src/Form/WebformScheduledTaskForm.php, line 259

Class

WebformScheduledTaskForm
The scheduled task form.

Namespace

Drupal\webform_scheduled_tasks\Form

Code

protected function validatePluginForm(array $plugin_form, PluginFormInterface $plugin, array $parent_form, FormStateInterface $form_state) {
  $sub_form_state = SubformState::createForSubform($plugin_form, $parent_form, $form_state);
  $plugin
    ->validateConfigurationForm($plugin_form, $sub_form_state);
}