summaryrefslogtreecommitdiff
path: root/modules/fahad/department/department.module
blob: 6058d002c6a739c0d701c4ca25c961acd78d1a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

/**
 * @file
 * Contains department.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function department_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the department module.
    case 'help.page.department':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('My Awesome Module') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function department_theme() {
  return [
    'department' => [
      'render element' => 'children',
    ],
  ];
}