OgFieldsPluginManager.php in Organic groups 8
File
src/OgFieldsPluginManager.php
View source
<?php
declare (strict_types=1);
namespace Drupal\og;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class OgFieldsPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/OgFields', $namespaces, $module_handler, NULL, 'Drupal\\og\\Annotation\\OgFields');
$this
->alterInfo('og_fields_alter');
$this
->setCacheBackend($cache_backend, 'og_fields');
}
}