views_rows_wrapper.module in Views Rows Wrapper 8
Same filename and directory in other branches
Views Rows Wrapper module help and theme functions.
File
views_rows_wrapper.moduleView source
<?php
/**
* @file
* Views Rows Wrapper module help and theme functions.
*/
use Drupal\Core\Routing\RouteMatchInterface;
// Store Views Rows Wrapper preprocess theme functions in a separate .inc file.
\Drupal::moduleHandler()
->loadInclude('views_rows_wrapper', 'inc', 'views_rows_wrapper.theme');
// Loads wrapper types settings class.
\Drupal::moduleHandler()
->loadInclude('views_rows_wrapper', 'inc', 'views_rows_wrapper_types');
/**
* Implements hook_help().
*/
function views_rows_wrapper_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the views_rows_wrapper module.
case 'help.page.views_rows_wrapper':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The view style plugin, that combines a user defined number of rows
into sets, wrapped by chosen elements and attributes.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function views_rows_wrapper_theme($existing, $type, $theme, $path) {
return [
'views_rows_wrapper' => [
'file' => 'views_rows_wrapper.theme.inc',
],
];
}
Functions
Name | Description |
---|---|
views_rows_wrapper_help | Implements hook_help(). |
views_rows_wrapper_theme | Implements hook_theme(). |