You are here

public function RelatedEntitiesDetectorManager::__construct in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x src/RelatedEntities/RelatedEntitiesDetectorManager.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager::__construct()
  2. 3.4.x src/RelatedEntities/RelatedEntitiesDetectorManager.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager::__construct()
  3. 3.6.x src/RelatedEntities/RelatedEntitiesDetectorManager.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager::__construct()
  4. 3.7.x src/RelatedEntities/RelatedEntitiesDetectorManager.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager::__construct()
  5. 3.8.x src/RelatedEntities/RelatedEntitiesDetectorManager.php \Drupal\lingotek\RelatedEntities\RelatedEntitiesDetectorManager::__construct()

Constructs a new LingotekEntityManagmentManager object.

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 to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/RelatedEntities/RelatedEntitiesDetectorManager.php, line 28

Class

RelatedEntitiesDetectorManager
Provides a RelatedEntitiesDetector plugin manager.

Namespace

Drupal\lingotek\RelatedEntities

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/RelatedEntitiesDetector', $namespaces, $module_handler, 'Drupal\\lingotek\\RelatedEntities\\RelatedEntitiesDetectorInterface', 'Drupal\\lingotek\\Annotation\\RelatedEntitiesDetector');
  $this
    ->alterInfo('related_entities_detector_info');
  $this
    ->setCacheBackend($cache_backend, 'related_entities_detector_info_plugins');
}