public function SerializerInterface::importFormFields in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x src/SerializerInterface.php \Drupal\fillpdf\SerializerInterface::importFormFields()
Imports FillPDF form fields.
Overwrites empty field values with previous existing field values.
Parameters
\Drupal\fillpdf\FillPdfFormFieldInterface[] $keyed_fields: Associative array of unsaved FillPDF Form objects keyed by PDF key.
\Drupal\fillpdf\FillPdfFormFieldInterface[] $existing_fields: (optional) Array of existing PDF keys.
bool $save_existing_fields: Whether to save the form fields in $existing_fields after updating them. If you pass FALSE, you will have to save them yourself.
Return value
string[] Array of unmatched PDF keys.
1 method overrides SerializerInterface::importFormFields()
- Serializer::importFormFields in src/
Serializer.php - Imports FillPDF form fields.
File
- src/
SerializerInterface.php, line 67
Class
- SerializerInterface
- Interface SerializerInterface.
Namespace
Drupal\fillpdfCode
public function importFormFields(array $keyed_fields, array &$existing_fields = [], $save_existing_fields = TRUE) : array;