Mercurial > hg > isophonics-drupal-site
comparison core/modules/help/src/Controller/HelpController.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
118 $module_name = $this->moduleHandler()->getName($name); | 118 $module_name = $this->moduleHandler()->getName($name); |
119 $build['#title'] = $module_name; | 119 $build['#title'] = $module_name; |
120 | 120 |
121 $info = system_get_info('module', $name); | 121 $info = system_get_info('module', $name); |
122 if ($info['package'] === 'Core (Experimental)') { | 122 if ($info['package'] === 'Core (Experimental)') { |
123 drupal_set_message($this->t('This module is experimental. <a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', [':url' => 'https://www.drupal.org/core/experimental']), 'warning'); | 123 $this->messenger()->addWarning($this->t('This module is experimental. <a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', [':url' => 'https://www.drupal.org/core/experimental'])); |
124 } | 124 } |
125 | 125 |
126 $temp = $this->moduleHandler()->invoke($name, 'help', ["help.page.$name", $this->routeMatch]); | 126 $temp = $this->moduleHandler()->invoke($name, 'help', ["help.page.$name", $this->routeMatch]); |
127 if (empty($temp)) { | 127 if (empty($temp)) { |
128 $build['top'] = ['#markup' => $this->t('No help is available for module %module.', ['%module' => $module_name])]; | 128 $build['top'] = ['#markup' => $this->t('No help is available for module %module.', ['%module' => $module_name])]; |