ContextReactionManager.php in Context 8.0
File
src/ContextReactionManager.php
View source
<?php
namespace Drupal\context;
use Traversable;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class ContextReactionManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ContextReaction', $namespaces, $module_handler, 'Drupal\\context\\ContextReactionInterface', 'Drupal\\context\\Reaction\\Annotation\\ContextReaction');
$this
->alterInfo('context_condition_info');
$this
->setCacheBackend($cache_backend, 'context_condition_plugins');
}
}