updated core to 8.6.1 via composer
This commit is contained in:
@@ -107,7 +107,8 @@ class HelpController extends ControllerBase {
|
||||
* A module name to display a help page for.
|
||||
*
|
||||
* @return array
|
||||
* A render array as expected by drupal_render().
|
||||
* A render array as expected by
|
||||
* \Drupal\Core\Render\RendererInterface::render().
|
||||
*
|
||||
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
|
||||
*/
|
||||
@@ -119,7 +120,7 @@ class HelpController extends ControllerBase {
|
||||
|
||||
$info = system_get_info('module', $name);
|
||||
if ($info['package'] === 'Core (Experimental)') {
|
||||
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');
|
||||
$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']));
|
||||
}
|
||||
|
||||
$temp = $this->moduleHandler()->invoke($name, 'help', ["help.page.$name", $this->routeMatch]);
|
||||
|
||||
@@ -17,7 +17,6 @@ use Drupal\Core\Cache\CacheableDependencyInterface;
|
||||
*/
|
||||
interface HelpSectionPluginInterface extends PluginInspectionInterface, CacheableDependencyInterface {
|
||||
|
||||
|
||||
/**
|
||||
* Returns the title of the help section.
|
||||
*
|
||||
|
||||
+1
@@ -14,6 +14,7 @@ use Drupal\help\Plugin\HelpSection\HelpSectionPluginBase;
|
||||
* )
|
||||
*/
|
||||
class EmptyHelpSection extends HelpSectionPluginBase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
||||
@@ -3,4 +3,4 @@ type: module
|
||||
core: 8.x
|
||||
package: Testing
|
||||
dependencies:
|
||||
- help
|
||||
- drupal:help
|
||||
|
||||
@@ -18,7 +18,7 @@ class HelpTest extends BrowserTestBase {
|
||||
* overview page. The help_page_test module has a page section plugin that
|
||||
* returns no links.
|
||||
*
|
||||
* @var array.
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = ['help_test', 'help_page_test'];
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class NoHelpTest extends BrowserTestBase {
|
||||
*
|
||||
* Use one of the test modules that do not implement hook_help().
|
||||
*
|
||||
* @var array.
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = ['help', 'menu_test'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user