Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
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
CRAP
0.00% covered (danger)
0.00%
0 / 1
DisplayBuildablePluginManager
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
0.00% covered (danger)
0.00%
0 / 1
 __construct
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
1<?php
2
3declare(strict_types=1);
4
5namespace Drupal\display_builder;
6
7use Drupal\Core\Cache\CacheBackendInterface;
8use Drupal\Core\Extension\ModuleHandlerInterface;
9use Drupal\Core\Plugin\DefaultPluginManager;
10use Drupal\display_builder\Attribute\DisplayBuildable;
11
12/**
13 * DisplayBuildable plugin manager.
14 */
15final class DisplayBuildablePluginManager extends DefaultPluginManager {
16
17  /**
18   * Constructs the object.
19   */
20  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
21    parent::__construct('Plugin/display_builder/Buildable', $namespaces, $module_handler, DisplayBuildableInterface::class, DisplayBuildable::class);
22    $this->alterInfo('display_buildable_info');
23    $this->setCacheBackend($cache_backend, 'display_buildable_plugins');
24  }
25
26}

Branches

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

DisplayBuildablePluginManager->__construct
20  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
21    parent::__construct('Plugin/display_builder/Buildable', $namespaces, $module_handler, DisplayBuildableInterface::class, DisplayBuildable::class);
22    $this->alterInfo('display_buildable_info');
23    $this->setCacheBackend($cache_backend, 'display_buildable_plugins');
24  }