You are here

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

TcpPdfExampleController

Namespace

Drupal\tcpdf_example\Controller

Code

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;
}