annotate vendor/chi-teck/drupal-code-generator/templates/d8/hook/help.twig @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author |
Chris Cannam |
date |
Thu, 28 Feb 2019 13:11:55 +0000 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 /**
|
Chris@0
|
2 * Implements hook_help().
|
Chris@0
|
3 */
|
Chris@0
|
4 function {{ machine_name }}_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
|
Chris@0
|
5 switch ($route_name) {
|
Chris@0
|
6 // Main module help for the block module.
|
Chris@0
|
7 case 'help.page.block':
|
Chris@0
|
8 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>';
|
Chris@0
|
9
|
Chris@0
|
10 // Help for another path in the block module.
|
Chris@0
|
11 case 'block.admin_display':
|
Chris@0
|
12 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>';
|
Chris@0
|
13 }
|
Chris@0
|
14 }
|