You are here

public function PhotoswipePreprocessProcessor::__construct in PhotoSwipe 3.x

Constructs new PhotoswipePreprocessProcessor object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity manager.

\Drupal\Core\Image\ImageFactory $imageFactory: Image factory.

\Drupal\Core\Utility\Token $token: Token.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: Language manager.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $channelFactory: Chanel factory.

\Drupal\Core\Render\RendererInterface $renderer: Renderer.

File

src/PhotoswipePreprocessProcessor.php, line 84

Class

PhotoswipePreprocessProcessor
Preprocess photoswipe images.

Namespace

Drupal\photoswipe

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ImageFactory $imageFactory, Token $token, LanguageManagerInterface $languageManager, LoggerChannelFactoryInterface $channelFactory, RendererInterface $renderer) {
  $this->entityTypeManager = $entityTypeManager;
  $this->imageFactory = $imageFactory;
  $this->token = $token;
  $this->languageManager = $languageManager;
  $this->renderer = $renderer;
  $this->logger = $channelFactory
    ->get('photoswipe');
}