Commit 24d1333c authored by catch's avatar catch

Issue #2003524 by manarth: Remove drupal_add_css() from() help.module — use #attached.

parent 8fadfdfb
......@@ -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;
}
......
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