public function PhotoswipeAssetsManager::__construct in PhotoSwipe 3.x
Same name and namespace in other branches
- 8.2 src/PhotoswipeAssetsManager.php \Drupal\photoswipe\PhotoswipeAssetsManager::__construct()
- 8 src/PhotoswipeAssetsManager.php \Drupal\photoswipe\PhotoswipeAssetsManager::__construct()
Creates a \Drupal\photoswipe\PhotoswipeAssetsManager.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Theme\ThemeManager $themeManager: The theme manager.
File
- src/PhotoswipeAssetsManager.php, line 69 
Class
- PhotoswipeAssetsManager
- Photoswipe asset manager.
Namespace
Drupal\photoswipeCode
public function __construct(ConfigFactoryInterface $config, RendererInterface $renderer, ModuleHandlerInterface $module_handler, ThemeManager $themeManager) {
  $this->config = $config
    ->get('photoswipe.settings');
  $this->renderer = $renderer;
  $this->moduleHandler = $module_handler;
  $this->themeManager = $themeManager;
}