You are here

public function LocalTaskItemForm::ajaxReviewForm in Translation Management Tool 8

Ajax callback for the job item review form.

File

translators/tmgmt_local/src/Form/LocalTaskItemForm.php, line 405

Class

LocalTaskItemForm
Form controller for the localTaskItem edit forms.

Namespace

Drupal\tmgmt_local\Form

Code

public function ajaxReviewForm(array $form, FormStateInterface $form_state) {
  $key = array_slice($form_state
    ->getTriggeringElement()['#array_parents'], 0, 3);
  $render_data = NestedArray::getValue($form, $key);
  return $render_data;
}