You are here

ContextReactionManager.php in Context 8

Same filename and directory in other branches
  1. 8.4 src/ContextReactionManager.php
  2. 8.0 src/ContextReactionManager.php

Namespace

Drupal\context

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 {

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

}

Classes