public function PdfGeneratorBase::setOptions in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGeneratorBase.php \Drupal\pdf_api\Plugin\PdfGeneratorBase::setOptions()
Set global options.
Parameters
array $options: The array of options to merge into the currently set options.
7 calls to PdfGeneratorBase::setOptions()
- MpdfGenerator::setPageOrientation in src/
Plugin/ PdfGenerator/ MpdfGenerator.php - Set the paper orientation of the generated PDF pages.
- MpdfGenerator::setPageSize in src/
Plugin/ PdfGenerator/ MpdfGenerator.php - Set the page size of the generated PDF pages.
- WkhtmltopdfGenerator::configBinary in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Set the path of binary file.
- WkhtmltopdfGenerator::setFooter in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Sets the footer in the PDF.
- WkhtmltopdfGenerator::setHeader in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Sets the header in the PDF.
File
- src/
Plugin/ PdfGeneratorBase.php, line 267 - Contains \Drupal\printable\Plugin\PrintableFormatBase.
Class
- PdfGeneratorBase
- Provides a base class for PDF generator plugins.
Namespace
Drupal\pdf_api\PluginCode
public function setOptions(array $options) {
$this->options += $options;
}