You are here

public function TestTranslatorUi::reviewDataItemElement in Translation Management Tool 8

Form callback for the data item element form.

Overrides TranslatorPluginUiBase::reviewDataItemElement

File

tmgmt_test/src/TestTranslatorUi.php, line 71

Class

TestTranslatorUi
Test translator UI controller.

Namespace

Drupal\tmgmt_test

Code

public function reviewDataItemElement(array $form, FormStateInterface $form_state, $data_item_key, $parent_key, array $data_item, JobItemInterface $item) {
  $form['below']['test_translator'] = array(
    '#markup' => t('Testing output of review data item element @key from the testing provider.', array(
      '@key' => $data_item_key,
    )),
    '#weight' => 100,
  );
  return $form;
}