You are here

public function PhotoswipeAssetsManager::__construct in PhotoSwipe 3.x

Same name and namespace in other branches
  1. 8.2 src/PhotoswipeAssetsManager.php \Drupal\photoswipe\PhotoswipeAssetsManager::__construct()
  2. 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\photoswipe

Code

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;
}