public function PrintableFormatBase::getResponse in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x src/Plugin/PrintableFormatBase.php \Drupal\printable\Plugin\PrintableFormatBase::getResponse()
Returns the response object for this format plugin.
Return value
\Symfony\Component\HttpFoundation\Response The response object.
Overrides PrintableFormatInterface::getResponse
1 method overrides PrintableFormatBase::getResponse()
- PdfFormat::getResponse in modules/
printable_pdf/ src/ Plugin/ PrintableFormat/ PdfFormat.php - Returns the response object for this format plugin.
File
- src/
Plugin/ PrintableFormatBase.php, line 150
Class
- PrintableFormatBase
- Provides a base class for Filter plugins.
Namespace
Drupal\printable\PluginCode
public function getResponse() {
return new Response($this
->getOutput());
}