Security update for permissions_by_term
[yaffs-website] / web / modules / custom / yaffs_dashboard / yaffs_dashboard.module
1 <?php
2
3 /**
4  * @file
5  * Contains yaffs_dash.module.
6  */
7
8 use Drupal\Core\Routing\RouteMatchInterface;
9
10 /**
11  * Implements hook_help().
12  */
13 function yaffs_dashboard_help($route_name, RouteMatchInterface $route_match) {
14   switch ($route_name) {
15     // Main module help for the yaffs_dash module.
16     case 'help.page.yaffs_dashboard':
17       $output = '';
18       $output .= '<h3>' . t('About') . '</h3>';
19       $output .= '<p>' . t('Yaffs Dashboard helps to manage the Yaffs site') . '</p>';
20       return $output;
21
22     default:
23   }
24 }
25
26 /**
27  * Implements hook_theme().b
28  */
29 function yaffs_dashboard_theme() {
30   return [
31     'yaffs_dash' => [
32       'template' => 'yaffs_dashboard',
33       'render element' => 'children',
34     ],
35   ];
36 }