Completed
Pull Request — 8.x-2.x (#24)
by Frédéric G.
03:14
created

ControllerBase::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Drupal\mongodb_watchdog\Controller;
4
5
use Drupal\Core\Config\ImmutableConfig;
6
use Drupal\Core\Controller\ControllerBase as CoreControllerBase;
7
8
abstract class ControllerBase extends CoreControllerBase {
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
9
10
  /**
11
   * The items_per_page configuration value.
12
   *
13
   * @var int
14
   */
15
  protected $itemsPerPage;
16
17
  /**
18
   * ControllerBase constructor.
19
   *
20
   * @param \Drupal\Core\Config\ImmutableConfig $config
21
   *   The module configuration.
22
   */
23
  public function __construct(ImmutableConfig $config) {
24
    $this->itemsPerPage = $config->get('items_per_page');
25
  }
26
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
27