page_tester-1.0.x-dev/src/TestsPluginManager.php

src/TestsPluginManager.php
<?php

declare(strict_types=1);

namespace Drupal\page_tester;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\page_tester\Annotation\Tests;

/**
 * Tests plugin manager.
 */
final class TestsPluginManager extends DefaultPluginManager {

  /**
   * Constructs the object.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/Tests', $namespaces, $module_handler, TestsInterface::class, Tests::class);
    $this->alterInfo('tests_info');
    $this->setCacheBackend($cache_backend, 'tests_plugins');
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc