You are here

interface InputHelperInterface in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/InputHelperInterface.php \Drupal\fillpdf\InputHelperInterface

Interface InputHelperInterface.

@package Drupal\fillpdf

Hierarchy

Expanded class hierarchy of InputHelperInterface

All classes that implement InputHelperInterface

2 files declare their use of InputHelperInterface
FillPdfFormForm.php in src/Form/FillPdfFormForm.php
FillPdfOverviewForm.php in src/Form/FillPdfOverviewForm.php

File

src/InputHelperInterface.php, line 12

Namespace

Drupal\fillpdf
View source
interface InputHelperInterface {

  /**
   * Attaches a PDF template file to a FillPdfForm.
   *
   * @param \Drupal\file\FileInterface $file
   *   The PDF template file to attach.
   * @param \Drupal\fillpdf\FillPdfFormInterface $existing_form
   *   The FillPdfForm the PDF template file should be attached to.
   *
   * @return array
   *   Associative array with the following keys:
   *   - 'form': The updated FillPdfForm entity.
   *   - 'fields': Associative array of the FillPdfForm entity's saved
   *     FillPdfFormFields.
   */
  public function attachPdfToForm(FileInterface $file, FillPdfFormInterface $existing_form = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
InputHelperInterface::attachPdfToForm public function Attaches a PDF template file to a FillPdfForm. 1