Controller routines for tour_test routes.
Expanded class hierarchy of TourTestController
class TourTestController implements ControllerInterface {
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static();
}
/**
* Outputs some content for testing tours.
*/
public function tourTest1() {
return array(
'tip-1' => array(
'#type' => 'container',
'#attributes' => array(
'id' => 'tour-test-1',
),
'#children' => t('Where does the rain in Spain fail?'),
),
'tip-4' => array(
'#type' => 'container',
'#attributes' => array(
'id' => 'tour-test-4',
),
'#children' => t('Tip created later?'),
),
);
}
/**
* Outputs some content for testing tours.
*/
public function tourTest2() {
return array(
'#type' => 'container',
'#attributes' => array(
'id' => 'tour-test-2',
),
'#children' => t('Pangram example'),
);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TourTestController:: |
public static | function |
Instantiates a new instance of this controller. Overrides ControllerInterface:: |
|
TourTestController:: |
public | function | Outputs some content for testing tours. | |
TourTestController:: |
public | function | Outputs some content for testing tours. |