You are here

public function JobItemForm::showDiff in Translation Management Tool 8

Submit handler to show the diff table of the source.

File

src/Form/JobItemForm.php, line 720

Class

JobItemForm
Form controller for the job item edit forms.

Namespace

Drupal\tmgmt\Form

Code

public function showDiff(array $form, FormStateInterface $form_state) {
  $key = $form_state
    ->getTriggeringElement()['#data_item_key'];
  $form_state
    ->set('show_diff:' . $key, TRUE);
  $form_state
    ->setRebuild();
}