You are here

public function PrintableFormatBase::getResponse in Printer and PDF versions for Drupal 8+ 2.x

Same name and namespace in other branches
  1. 8 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\Plugin

Code

public function getResponse() {
  return new Response($this
    ->getOutput());
}