Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ae12caf9
Commit
ae12caf9
authored
Jan 03, 2014
by
Nathaniel Catchpole
Browse files
Issue
#2160599
by Wim Leers, vijaycs85: Remove drupal_add_js() from system module.
parent
8055460c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/system/tests/modules/test_page_test/test_page_test.module
View file @
ae12caf9
...
...
@@ -18,9 +18,13 @@ function test_page_test_menu() {
* @deprecated Use \Drupal\test_page_test\Controller\TestPageTestController::testPage()
*/
function
test_page_test_page
()
{
drupal_add_js
(
array
(
'test-setting'
=>
'azAZ09();.,\\\/-_{}'
),
array
(
'type'
=>
'setting'
));
$attached
[
'js'
][]
=
array
(
'data'
=>
array
(
'test-setting'
=>
'azAZ09();.,\\\/-_{}'
),
'type'
=>
'setting'
,
);
return
array
(
'#title'
=>
t
(
'Test page'
),
'#markup'
=>
t
(
'Test page text.'
),
'#attached'
=>
$attached
,
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment