public function AvatarGeneratorPluginManager::__construct in Avatar Kit 8
Constructs a new avatar generator plugin manager.
Overrides DefaultPluginManager::__construct
File
- src/
AvatarGeneratorPluginManager.php, line 18
Class
- AvatarGeneratorPluginManager
- Manages discovery and instantiation of avatar generator plugins.
Namespace
Drupal\avatarsCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/AvatarGenerator', $namespaces, $module_handler, 'Drupal\\avatars\\Plugin\\AvatarGenerator\\AvatarGeneratorPluginInterface', 'Drupal\\avatars\\Annotation\\AvatarGenerator');
$this
->alterInfo('avatar_generator_info');
$this
->setCacheBackend($cache_backend, 'avatar_generator_info_plugins');
}