Completed
Pull Request — 8.x-1.x (#5)
by Vijay
02:37
created

media.module::media_help()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 8
c 1
b 0
f 0
nc 2
nop 2
dl 0
loc 12
rs 9.4285
1
<?php
2
3
/**
4
 * @file
5
 * Contains media.module.
6
 */
7
8
use Drupal\Core\Routing\RouteMatchInterface;
9
10
/**
11
 * Implements hook_help().
12
 */
13
function media_help($route_name, RouteMatchInterface $route_match) {
0 ignored issues
show
Unused Code introduced by
The parameter $route_match is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
14
    switch ($route_name) {
15
        // Main module help for the media module.
16
        case 'help.page.media':
17
            $output = '';
18
            $output .= '<h3>' . t('About') . '</h3>';
19
            $output .= '<p>' . t('Media module for Drupal 8') . '</p>';
20
            return $output;
21
22
        default:
23
    }
24
}
25
26