responsive_views_grid.module in Responsive Views Grid 8
Contains responsive_views_grid.module.
File
responsive_views_grid.moduleView source
<?php
/**
* @file
* Contains responsive_views_grid.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function responsive_views_grid_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the responsive_views_grid module.
case 'help.page.responsive_views_grid':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('A view style plugin for responsive grids.') . '</p>';
return $output;
default:
}
}
\Drupal::moduleHandler()
->loadInclude('responsive_views_grid', 'inc', 'responsive_views_grid.theme');
/**
* Implements hook_theme().
*/
function responsive_views_grid_theme($existing, $type, $theme, $path) {
return [
'responsive_grid' => [
'file' => 'responsive_views_grid.theme.inc',
],
];
}
Functions
Name | Description |
---|---|
responsive_views_grid_help | Implements hook_help(). |
responsive_views_grid_theme | Implements hook_theme(). |