public function TestTranslator::rejectForm in Translation Management Tool 8
Reject form.
This method gets call by tmgmt_translation_review_form_reject_confirm and allows the translator to add aditional form elements in order to collect data needed for the reject prozess.
Parameters
$form: The form array containing a confirm form. $form['item'] holds the job item to which the to be rejected data item belongs to. $form['item'] holds key of the to be rejected data item as an array of keys of a nested array hierarchy.
$form_state: The form state.
Return value
The resulting form array.
Overrides TranslatorRejectDataInterface::rejectForm
File
- tmgmt_test/
src/ Plugin/ tmgmt/ Translator/ TestTranslator.php, line 137
Class
- TestTranslator
- Test source plugin implementation.
Namespace
Drupal\tmgmt_test\Plugin\tmgmt\TranslatorCode
public function rejectForm(array $form, FormStateInterface $form_state) {
return $form;
}