You are here

public function PhotoswipeAssetsManager::__construct in PhotoSwipe 8

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

File

src/PhotoswipeAssetsManager.php, line 42

Class

PhotoswipeAssetsManager
Photoswipe asset manager.

Namespace

Drupal\photoswipe

Code

public function __construct(ConfigFactoryInterface $config, RendererInterface $renderer) {
  $this->config = $config
    ->get('photoswipe.settings');
  $this->renderer = $renderer;
}