You are here

public function PrintExceptionEngine::send in Entity Print 8.2

Send the Print contents to the browser.

Parameters

string $filename: The filename if we want to force the browser to download.

bool $force_download: TRUE to attempt to force the browser to download the PDF otherwise FALSE.

Throws

\Drupal\entity_print\PrintEngineException Thrown when Print generation fails.

Overrides PrintEngineInterface::send

File

tests/modules/entity_print_test/src/Plugin/EntityPrint/PrintEngine/PrintExceptionEngine.php, line 22

Class

PrintExceptionEngine
A test print engine that throws an exception.

Namespace

Drupal\entity_print_test\Plugin\EntityPrint\PrintEngine

Code

public function send($filename, $force_download = TRUE) {
  throw new PrintEngineException('Exception thrown by PrintExceptionEngine');
}