comparison core/modules/help/help.api.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
2 2
3 /** 3 /**
4 * @file 4 * @file
5 * Hooks for the Help system. 5 * Hooks for the Help system.
6 */ 6 */
7
8 use Drupal\Core\Url;
7 9
8 /** 10 /**
9 * @addtogroup hooks 11 * @addtogroup hooks
10 * @{ 12 * @{
11 */ 13 */
46 */ 48 */
47 function hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) { 49 function hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
48 switch ($route_name) { 50 switch ($route_name) {
49 // Main module help for the block module. 51 // Main module help for the block module.
50 case 'help.page.block': 52 case 'help.page.block':
51 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>'; 53 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>';
52 54
53 // Help for another path in the block module. 55 // Help for another path in the block module.
54 case 'block.admin_display': 56 case 'block.admin_display':
55 return '<p>' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.') . '</p>'; 57 return '<p>' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.') . '</p>';
56 } 58 }