public function SourceOverviewForm::submitToContinuousJobs

Submit method for Add to continuous jobs button.

Parameters

array $form: Drupal form array.

FormStateInterface $form_state: Drupal form_state array.

File

src/Form/SourceOverviewForm.php, line 278

Class

SourceOverviewForm
Source overview form.

Namespace

Drupal\tmgmt\Form

Code

public function submitToContinuousJobs(array &$form, FormStateInterface $form_state) {
  $plugin = $form_state
    ->get('plugin');
  $item_type = $form_state
    ->get('item_type');

  // Execute the submit method on the source plugin controller.
  $source_ui = $this->sourceManager
    ->createUIInstance($plugin);
  $source_ui
    ->overviewSubmitToContinuousJobs($form_state, $item_type);
}