You are here

public function SourceOverviewForm::submitForm in Translation Management Tool 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides FormInterface::submitForm

File

src/Form/SourceOverviewForm.php, line 248

Class

SourceOverviewForm
Source overview form.

Namespace

Drupal\tmgmt\Form

Code

public function submitForm(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
    ->overviewFormSubmit($form, $form_state, $item_type);
}