You are here

public function TestsController::testLoader in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.2 tests/modules/bamboo_twig_test/src/Controller/TestsController.php \Drupal\bamboo_twig_test\Controller\TestsController::testLoader()
  2. 8.3 tests/modules/bamboo_twig_test/src/Controller/TestsController.php \Drupal\bamboo_twig_test\Controller\TestsController::testLoader()
  3. 8.4 tests/modules/bamboo_twig_test/src/Controller/TestsController.php \Drupal\bamboo_twig_test\Controller\TestsController::testLoader()

Loader page.

1 string reference to 'TestsController::testLoader'
bamboo_twig_test.routing.yml in tests/modules/bamboo_twig_test/bamboo_twig_test.routing.yml
tests/modules/bamboo_twig_test/bamboo_twig_test.routing.yml

File

tests/modules/bamboo_twig_test/src/Controller/TestsController.php, line 17

Class

TestsController
Returns renderer-responses for testing Twig functions/filters on templates.

Namespace

Drupal\bamboo_twig_test\Controller

Code

public function testLoader() {
  return [
    '#variables' => [
      'image_path' => drupal_get_path('module', 'bamboo_twig_test') . '/files/antistatique.jpg',
    ],
    '#theme' => 'bamboo_twig_test_loader',
  ];
}