summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/help/help.api.php
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2019-04-16 14:38:27 +0900
committercatch <catch@35733.no-reply.drupal.org>2019-04-16 14:38:27 +0900
commit9791614b7868a3f7a42bccc949e581dcc62c6d91 (patch)
tree928a33caff0fc716f75ab568897bcb5dcfce80ee /core/modules/help/help.api.php
parent2da5fecccb98ab61fe9fcae55dc2b1174aaa5102 (diff)
downloaddrupal-9791614b7868a3f7a42bccc949e581dcc62c6d91.tar.gz
drupal-9791614b7868a3f7a42bccc949e581dcc62c6d91.zip
Issue #2731817 by mikelutz, ashishdalvi, Sonal.Sangale, dbt102, andypost, jhodgdon, martin107, roderik: Replace all calls to the deprecated Drupal::url() function in Core
Diffstat (limited to 'core/modules/help/help.api.php')
-rw-r--r--core/modules/help/help.api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/help/help.api.php b/core/modules/help/help.api.php
index 8b4b1cca263..6306f14b0a9 100644
--- a/core/modules/help/help.api.php
+++ b/core/modules/help/help.api.php
@@ -5,6 +5,8 @@
* Hooks for the Help system.
*/
+use Drupal\Core\Url;
+
/**
* @addtogroup hooks
* @{
@@ -48,7 +50,7 @@ function hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_
switch ($route_name) {
// Main module help for the block module.
case 'help.page.block':
- return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The <a href=":blocks">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', [':blocks' => \Drupal::url('block.admin_display')]) . '</p>';
+ return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The <a href=":blocks">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', [':blocks' => Url::fromRoute('block.admin_display')->toString()]) . '</p>';
// Help for another path in the block module.
case 'block.admin_display':