function views_table_rowspan_help in Views Table Rowspan 8
Same name and namespace in other branches
- 7 views_table_rowspan.module \views_table_rowspan_help()
Implements hook_help().
File
- ./
views_table_rowspan.module, line 15 - Merge duplicate rows in group to one row.
Code
function views_table_rowspan_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
$link = Link::fromTextAndUrl('new view', Url::fromUserInput("/admin/structure/views/add"))
->toString();
$rowspan_link = Link::fromTextAndUrl('rowspan', Url::fromUri("http://www.w3schools.com/tags/att_td_rowspan.asp"))
->toString();
switch ($route_name) {
// Help for module views_table_rowspan.
case 'help.page.views_table_rowspan':
$help = '<p>' . t('Views Table Rowspan defines new views display format name "Table Rowspan". This display will group rows in table and merge row has same value to one row use property @url.', [
'@url' => $rowspan_link,
]) . '</p>';
$help .= '<ul>';
$help .= '<li>' . t('Create a @link (for example, a list of node).', [
'@link' => $link,
]) . '</li>';
$help .= '<li>' . t('Set format Table Rowspan for this view.') . '</li>';
$help .= '<li>' . t('Add some field to this view.') . '</li>';
$help .= '<li>' . t('Group field that has same value.') . '</li>';
$help .= '<li>' . t('Check option "Merge rows in group".') . '</li>';
$help .= '</ul>';
return $help;
}
}