public function InputHelperInterface::attachPdfToForm in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 src/InputHelperInterface.php \Drupal\fillpdf\InputHelperInterface::attachPdfToForm()
Attaches a PDF template file to a FillPdfForm.
Parameters
\Drupal\file\FileInterface $file: The PDF template file to attach.
\Drupal\fillpdf\FillPdfFormInterface $existing_form: The FillPdfForm the PDF template file should be attached to.
Return value
array Associative array with the following keys:
- 'form': The updated FillPdfForm entity.
- 'fields': Associative array of the FillPdfForm entity's saved FillPdfFormFields.
1 method overrides InputHelperInterface::attachPdfToForm()
- InputHelper::attachPdfToForm in src/
InputHelper.php - Attaches a PDF template file to a FillPdfForm.
File
- src/
InputHelperInterface.php, line 28
Class
- InputHelperInterface
- Interface InputHelperInterface.
Namespace
Drupal\fillpdfCode
public function attachPdfToForm(FileInterface $file, FillPdfFormInterface $existing_form = NULL);