diff --git a/core/modules/help/lib/Drupal/help/Controller/HelpController.php b/core/modules/help/lib/Drupal/help/Controller/HelpController.php index 118f1bc..aa24ecd 100644 --- a/core/modules/help/lib/Drupal/help/Controller/HelpController.php +++ b/core/modules/help/lib/Drupal/help/Controller/HelpController.php @@ -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 = '
' . t('Help is available on the following items:') . '
' . $this->helpLinksAsList(); + $output = array( + '#attached' => array( + 'css' => array(drupal_get_path('module', 'help') . '/help.css'), + ), + '#markup' => '' . t('Help is available on the following items:') . '
' . $this->helpLinksAsList(), + ); return $output; }