OptionalModulesManager.php in Thunder 8.3
File
src/OptionalModulesManager.php
View source
<?php
namespace Drupal\thunder;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class OptionalModulesManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Thunder/OptionalModule', $namespaces, $module_handler, 'Drupal\\thunder\\Plugin\\Thunder\\OptionalModule\\AbstractOptionalModule', 'Drupal\\thunder\\Annotation\\ThunderOptionalModule');
$this
->alterInfo('thunder_optional_module_info');
$this
->setCacheBackend($cache_backend, 'thunder_optional_module_plugins');
}
}