Skip to content
Snippets Groups Projects
Commit ef5b3506 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Issue #2359213: Add import/export links to form.

parent a749440b
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,20 @@ class FillPdfFormForm extends ContentEntityForm {
$form['fillpdf_fields']['#weight'] = 100;
// @todo: Add import/export links once those routes actually exist
$form['export_fields'] = [
'#prefix' => '<div>',
'#markup' => $this->l($this->t('Export these field mappings'), Url::fromRoute('entity.fillpdf_form.export_form', ['fillpdf_form' => $entity->id()])),
'#suffix' => '</div>',
'#weight' => 100,
];
$form['import_fields'] = [
'#prefix' => '<div>',
'#markup' => $this->l($this->t('Import a previous export into this PDF'), Url::fromRoute('entity.fillpdf_form.import_form', ['fillpdf_form' => $entity->id()])),
'#suffix' => '</div>',
'#weight' => 100,
];
return $form;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment