EntityUsageTrackManager.php in Entity Usage 8.2
File
src/EntityUsageTrackManager.php
View source
<?php
namespace Drupal\entity_usage;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class EntityUsageTrackManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/EntityUsage/Track', $namespaces, $module_handler, 'Drupal\\entity_usage\\EntityUsageTrackInterface', 'Drupal\\entity_usage\\Annotation\\EntityUsageTrack');
$this
->alterInfo('entity_usage_track_info');
$this
->setCacheBackend($cache_backend, 'entity_usage_track_plugins');
}
}