public function EntityHandlerPluginManager::__construct in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::__construct()
- 2.0.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::__construct()
Constructor.
Constructs a new \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager 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/
Plugin/ Type/ EntityHandlerPluginManager.php, line 35
Class
- EntityHandlerPluginManager
- Manages discovery and instantiation of entity handler plugins.
Namespace
Drupal\cms_content_sync\Plugin\TypeCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/cms_content_sync/entity_handler', $namespaces, $module_handler, 'Drupal\\cms_content_sync\\Plugin\\EntityHandlerInterface', 'Drupal\\cms_content_sync\\Annotation\\EntityHandler');
$this
->setCacheBackend($cache_backend, 'cms_content_sync_entity_handler_plugins');
$this
->alterInfo('cms_content_sync_entity_handler');
}