Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
24d1333c
Commit
24d1333c
authored
Jun 02, 2013
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2003524
by manarth: Remove drupal_add_css() from() help.module — use #attached.
parent
8fadfdfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
core/modules/help/lib/Drupal/help/Controller/HelpController.php
...odules/help/lib/Drupal/help/Controller/HelpController.php
+6
-3
No files found.
core/modules/help/lib/Drupal/help/Controller/HelpController.php
View file @
24d1333c
...
...
@@ -46,9 +46,12 @@ public static function create(ContainerInterface $container) {
* An HTML string representing the contents of help page.
*/
public
function
helpMain
()
{
// Add CSS.
drupal_add_css
(
drupal_get_path
(
'module'
,
'help'
)
.
'/help.css'
);
$output
=
'<h2>'
.
t
(
'Help topics'
)
.
'</h2><p>'
.
t
(
'Help is available on the following items:'
)
.
'</p>'
.
$this
->
helpLinksAsList
();
$output
=
array
(
'#attached'
=>
array
(
'css'
=>
array
(
drupal_get_path
(
'module'
,
'help'
)
.
'/help.css'
),
),
'#markup'
=>
'<h2>'
.
t
(
'Help topics'
)
.
'</h2><p>'
.
t
(
'Help is available on the following items:'
)
.
'</p>'
.
$this
->
helpLinksAsList
(),
);
return
$output
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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