Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
LibrariesPanel
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 keyboardShortcuts
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 build
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace Drupal\display_builder\Plugin\display_builder\Island;
6
7use Drupal\Core\StringTranslation\TranslatableMarkup;
8use Drupal\display_builder\Attribute\Island;
9use Drupal\display_builder\InstanceInterface;
10use Drupal\display_builder\IslandPluginBase;
11use Drupal\display_builder\IslandType;
12
13/**
14 * Layers island plugin implementation.
15 */
16#[Island(
17  id: 'library',
18  enabled_by_default: TRUE,
19  label: new TranslatableMarkup('Libraries'),
20  description: new TranslatableMarkup('Pick elements from libraries and drop them in the display.'),
21  type: IslandType::View,
22  icon: 'collection',
23)]
24class LibrariesPanel extends IslandPluginBase {
25
26  /**
27   * {@inheritdoc}
28   */
29  public static function keyboardShortcuts(): array {
30    return [
31      'l' => t('Show the libraries'),
32    ];
33  }
34
35  /**
36   * {@inheritdoc}
37   */
38  public function build(InstanceInterface $builder, array $data = [], array $options = []): array {
39    // @todo Move the logic here.
40    // @see https://www.drupal.org/project/display_builder/issues/3542866
41    return [];
42  }
43
44}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

LibrariesPanel->build
38  public function build(InstanceInterface $builder, array $data = [], array $options = []): array {
39    // @todo Move the logic here.
40    // @see https://www.drupal.org/project/display_builder/issues/3542866
41    return [];
LibrariesPanel->keyboardShortcuts
31      'l' => t('Show the libraries'),