final class TextFieldMapping in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x src/FieldMapping/TextFieldMapping.php \Drupal\fillpdf\FieldMapping\TextFieldMapping
Represents a mapping between a PDF text field and a merge value.
TextFieldMapping objects are immutable; replace the value by calling the constructor again if the value needs to change.
Hierarchy
- class \Drupal\fillpdf\FieldMapping
- class \Drupal\fillpdf\FieldMapping\TextFieldMapping
Expanded class hierarchy of TextFieldMapping
8 files declare their use of TextFieldMapping
- BackendProxy.php in src/
Service/ BackendProxy.php - FillPdfServicePdfBackend.php in src/
Plugin/ PdfBackend/ FillPdfServicePdfBackend.php - LegacyProviderPdfBackend.php in modules/
fillpdf_legacy/ src/ Plugin/ PdfBackend/ LegacyProviderPdfBackend.php - LocalServerPdfBackend.php in src/
Plugin/ PdfBackend/ LocalServerPdfBackend.php - PdfPopulationTest.php in tests/
src/ Functional/ PdfPopulationTest.php
File
- src/
FieldMapping/ TextFieldMapping.php, line 13
Namespace
Drupal\fillpdf\FieldMappingView source
final class TextFieldMapping extends FieldMapping {
/**
* Constructs an TextFieldMapping object.
*
* @param string $data
* String containing the text data.
*/
public function __construct($data) {
// Ensure data is a string.
parent::__construct((string) $data);
}
/**
* Return parent::getData().
*
* @return string
* The return value of parent::getData().
*/
public function __toString() {
return parent::getData();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldMapping:: |
protected | property | The primary value of the mapping. | |
FieldMapping:: |
public | function | Returns the data. | |
TextFieldMapping:: |
public | function |
Constructs an TextFieldMapping object. Overrides FieldMapping:: |
|
TextFieldMapping:: |
public | function | Return parent::getData(). |