public function TcpPdfExampleController::exampleContents in TCPDF 8
1 string reference to 'TcpPdfExampleController::exampleContents'
- tcpdf_example.routing.yml in tcpdf_example/
tcpdf_example.routing.yml - tcpdf_example/tcpdf_example.routing.yml
File
- tcpdf_example/
src/ Controller/ TcpPdfExampleController.php, line 34 - Contains \Drupal\tcpdf_example\Controller\TcpPdfExampleController
Class
Namespace
Drupal\tcpdf_example\ControllerCode
public function exampleContents() {
$page = [];
$page['example_pdf_link'] = [
'#title' => $this
->t('Basic pdf'),
'#type' => 'link',
'#url' => Url::fromRoute('tcpdf_example.download_pdf', array(
'example_name' => 'simple',
)),
];
return $page;
}