GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MagellanBlock::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 11
c 2
b 0
f 1
dl 0
loc 15
rs 9.9
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Drupal\df_tools_blocks\Plugin\Block;
4
5
use Drupal\Component\Utility\Html;
6
use Drupal\Core\Block\BlockBase;
7
8
/**
9
 * Provides the "Magellan" block.
10
 *
11
 * @Block(
12
 *   id = "magellan",
13
 *   admin_label = @Translation("Magellan"),
14
 *   category = @Translation("Menus")
15
 * )
16
 */
17
class MagellanBlock extends BlockBase {
18
19
  /**
20
   * {@inheritdoc}
21
   */
22
  public function build() {
23
    $build = [
24
      '#markup' =>
25
        '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">' .
26
        '  <div data-sticky-light>' .
27
        '    <nav data-magellan-light>' .
28
        '      <ul class="horizontal menu nav expanded"></ul>' .
29
        '    </nav>' .
30
        '  </div>' .
31
        '</div>',
32
    ];
33
34
    $build['#attached']['library'][] = 'df_tools_blocks/magellan';
35
36
    return $build;
37
  }
38
39
}
40