FrontendEnvironmentManager.php in Build Hooks 8.2
File
src/Plugin/FrontendEnvironmentManager.php
View source
<?php
namespace Drupal\build_hooks\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class FrontendEnvironmentManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/FrontendEnvironment', $namespaces, $module_handler, 'Drupal\\build_hooks\\Plugin\\FrontendEnvironmentInterface', 'Drupal\\build_hooks\\Annotation\\FrontendEnvironment');
$this
->alterInfo('build_hooks_frontend_environment_info');
$this
->setCacheBackend($cache_backend, 'build_hooks_frontend_environment_plugins');
}
}