Commit 795d9f92 authored by alexpott's avatar alexpott

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
......@@ -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,
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment