Skip to content
Snippets Groups Projects
Commit 795d9f92 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2563805 by andriyun, subhojit777, joshi.rohit100, naxolozano: Remove...

Issue #2563805 by andriyun, subhojit777, joshi.rohit100, naxolozano: Remove usage and function of test_page_test_page()
parent c1be7e7b
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,18 @@
class TestPageTestController {
/**
* @todo Remove test_page_test_page().
* Returns a test page and sets the title.
*/
public function testPage() {
return test_page_test_page();
return [
'#title' => t('Test page'),
'#markup' => t('Test page text.'),
'#attached' => [
'drupalSettings' => [
'test-setting' => 'azAZ09();.,\\\/-_{}',
],
],
];
}
}
<?php
/**
* 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['drupalSettings']['test-setting'] = 'azAZ09();.,\\\/-_{}';
return array(
'#title' => t('Test page'),
'#markup' => t('Test page text.'),
'#attached' => $attached,
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment