function TourTestController::tourTest2

Same name in other branches
  1. 9 core/modules/tour/tests/tour_test/src/Controller/TourTestController.php \Drupal\tour_test\Controller\TourTestController::tourTest2()
  2. 8.9.x core/modules/tour/tests/tour_test/src/Controller/TourTestController.php \Drupal\tour_test\Controller\TourTestController::tourTest2()
  3. 10 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'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.