Passed
Push — 8.x-2.x ( 371e81...bfb9ec )
by Frédéric G.
02:52 queued 01:48
created

modules/mongodb/mongodb.module::mongodb_help()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @file
5
 * Contains the main module connecting Drupal to MongoDB.
6
 */
7
8
declare(strict_types = 1);
9
10
/**
11
 * Implements hook_help().
12
 */
13
function mongodb_help($route) {
14
  switch ($route) {
15
    case 'help.page.mongodb':
16
      return '<p>' . t('The Drupal <a href=":project">MongoDB</a> project implements a generic interface to the <a href=":mongo">MongoDB</a> database server. Read its <a href=":docs">online documentation</a>.', [
17
        ':project' => 'https://www.drupal.org/project/mongodb',
18
        ':mongo' => 'https://www.mongodb.com/',
19
        ':docs' => 'https://fgm.github.io/mongodb',
20
      ]) . '</p>';
21
  }
22
}
23