ConfigPagesContextManager.php in Config Pages 8.3
File
src/ConfigPagesContextManager.php
View source
<?php
namespace Drupal\config_pages;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class ConfigPagesContextManager extends DefaultPluginManager implements ConfigPagesContextManagerInterface {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ConfigPagesContext', $namespaces, $module_handler, 'Drupal\\config_pages\\ConfigPagesContextInterface', 'Drupal\\config_pages\\Annotation\\ConfigPagesContext');
$this
->alterInfo('config_pages_contexts_info');
$this
->setCacheBackend($cache_backend, 'config_pages_contexts');
}
}