You are here

public function TourTestController::tourTest2 in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/tour/tests/tour_test/src/Controller/TourTestController.php \Drupal\tour_test\Controller\TourTestController::tourTest2()

Outputs some content for testing tours.

1 string reference to 'TourTestController::tourTest2'
tour_test.routing.yml in core/modules/tour/tests/tour_test/tour_test.routing.yml
core/modules/tour/tests/tour_test/tour_test.routing.yml

File

core/modules/tour/tests/tour_test/src/Controller/TourTestController.php, line 63

Class

TourTestController
Controller routines for tour_test routes.

Namespace

Drupal\tour_test\Controller

Code

public function tourTest2() {
  return [
    '#type' => 'container',
    '#attributes' => [
      'id' => 'tour-test-2',
    ],
    '#children' => t('Pangram example'),
  ];
}