You are here

public function TestController::testPageWithPagers in Tome 8

Outputs a more page with pagers.

1 string reference to 'TestController::testPageWithPagers'
tome_test.routing.yml in modules/tome_static/tests/modules/tome_test/tome_test.routing.yml
modules/tome_static/tests/modules/tome_test/tome_test.routing.yml

File

modules/tome_static/tests/modules/tome_test/src/Controller/TestController.php, line 57

Class

TestController
Contains test pages for the tome module.

Namespace

Drupal\tome_test\Controller

Code

public function testPageWithPagers() {
  return [
    '#markup' => '<a href="?page=0">Page 1</a><a href="?page=1">Page 2</a><a href="/foobar?page=2">Page 3</a>',
    '#allowed_tags' => [
      'a',
    ],
  ];
}