public function EntityUsageTrackManager::__construct in Entity Usage 8
Same name and namespace in other branches
- 8.2 src/EntityUsageTrackManager.php \Drupal\entity_usage\EntityUsageTrackManager::__construct()
- 8.3 src/EntityUsageTrackManager.php \Drupal\entity_usage\EntityUsageTrackManager::__construct()
Constructs a new EntityUsageTrackManager.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- src/
EntityUsageTrackManager.php, line 25
Class
- EntityUsageTrackManager
- Manages entity_usage track plugins.
Namespace
Drupal\entity_usageCode
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');
}