123456789101112131415161718192021 |
- <?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 {
- /**
- * {@inheritdoc}
- */
- 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');
- }
- }
|