function responsive_tables_filter_help in Responsive Tables Filter 8
Implements hook_help().
File
- ./
responsive_tables_filter.module, line 14 - Contains responsive_tables_filter.module..
Code
function responsive_tables_filter_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the responsive_tables_filter module.
case 'help.page.responsive_tables_filter':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<dt>' . t('Basic Usage : text format') . '</dt>';
$output .= '<dd>' . t('Go to any of the defined formats on the <a href=":formats">Text formats page</a>. Enable "Apply responsive behavior to HTML tables" and save the form.', [
':formats' => Url::fromRoute('filter.admin_overview'),
]) . '</dd>';
$output .= '<dd>' . t('Under "Filter processing order," make sure this is placed after any filters that would strip table-related tags or the "class" attribute.') . '</dd>';
$output .= '<dd>' . t('If the text format uses "Limit allowed HTML tags and correct faulty HTML," make sure all of the following are included in the allowed list:') . htmlentities(' <table> <th> <tr> <td> <thead> <tbody> <tfoot>') . '</dd>';
$output .= '<p>Any fields that use the text format(s) which have tables in them will now be responsive.</p>';
$output .= '<dt>' . t('Views tables') . '</dt>';
$output .= '<dd>' . t('The 8.x version of this module currently automatically makes Views tables responsive.') . '</dd>';
return $output;
default:
}
}