ConnectionPermissionManager.php in RedHen CRM 8
File
modules/redhen_connection/src/Plugin/ConnectionPermissionManager.php
View source
<?php
namespace Drupal\redhen_connection\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class ConnectionPermissionManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/ConnectionPermission', $namespaces, $module_handler, 'Drupal\\redhen_connection\\Plugin\\ConnectionPermissionInterface', 'Drupal\\redhen_connection\\Annotation\\ConnectionPermission');
$this
->alterInfo('redhen_connection_connection_permission_info');
$this
->setCacheBackend($cache_backend, 'redhen_connection_connection_permission_plugins');
}
}