Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| DisplayBuildablePluginManager | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Drupal\display_builder; |
| 6 | |
| 7 | use Drupal\Core\Cache\CacheBackendInterface; |
| 8 | use Drupal\Core\Extension\ModuleHandlerInterface; |
| 9 | use Drupal\Core\Plugin\DefaultPluginManager; |
| 10 | use Drupal\display_builder\Attribute\DisplayBuildable; |
| 11 | |
| 12 | /** |
| 13 | * DisplayBuildable plugin manager. |
| 14 | */ |
| 15 | final 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 | } |