'Test front page', 'route_name' => 'test_page_test.test_page', ); return $items; } /** * Page callback: Returns a test page and sets the title. * * @deprecated Use \Drupal\test_page_test\Controller\TestPageTestController::testPage() */ function test_page_test_page() { $attached['js'][] = array( 'data' => array('test-setting' => 'azAZ09();.,\\\/-_{}'), 'type' => 'setting', ); return array( '#title' => t('Test page'), '#markup' => t('Test page text.'), '#attached' => $attached, ); }