You are here

public function SourceOverviewForm::validateItemsSelected in Translation Management Tool 8

Validation for selected items.

Parameters

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

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

File

src/Form/SourceOverviewForm.php, line 319

Class

SourceOverviewForm
Source overview form.

Namespace

Drupal\tmgmt\Form

Code

public function validateItemsSelected(array $form, FormStateInterface $form_state) {
  if ($form_state
    ->getTriggeringElement()['#submit'][0] == '::submitToContinuousJobs' && $form_state
    ->getValue('add_all_to_continuous_jobs')) {
    return;
  }
  tmgmt_cart_source_overview_validate($form, $form_state);
}