OgDeleteOrphansPluginManager.php in Organic groups 8
File
src/OgDeleteOrphansPluginManager.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 OgDeleteOrphansPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/OgDeleteOrphans', $namespaces, $module_handler, 'Drupal\\og\\OgDeleteOrphansInterface', 'Drupal\\og\\Annotation\\OgDeleteOrphans');
$this
->setCacheBackend($cache_backend, 'og_delete_orphans');
$this
->alterInfo('og_delete_orphans');
}
}