BusinessRulesVariableManager.php in Business Rules 8
File
src/Plugin/BusinessRulesVariableManager.php
View source
<?php
namespace Drupal\business_rules\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class BusinessRulesVariableManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/BusinessRulesVariable', $namespaces, $module_handler, 'Drupal\\business_rules\\Plugin\\BusinessRulesVariableInterface', 'Drupal\\business_rules\\Annotation\\BusinessRulesVariable');
$this
->alterInfo('business_rules_variable_info');
$this
->setCacheBackend($cache_backend, 'business_rules_variable_plugins');
}
}