You are here

public function PathProcessorBackgroundImage::__construct in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/PathProcessor/PathProcessorBackgroundImage.php \Drupal\background_image\PathProcessor\PathProcessorBackgroundImage::__construct()
  2. 2.x src/PathProcessor/PathProcessorBackgroundImage.php \Drupal\background_image\PathProcessor\PathProcessorBackgroundImage::__construct()

Constructs a new PathProcessorImageStyles object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler service.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The Stream Wrapper Manager service.

File

src/PathProcessor/PathProcessorBackgroundImage.php, line 38

Class

PathProcessorBackgroundImage
Defines a path processor to rewrite background image CSS URLs.

Namespace

Drupal\background_image\PathProcessor

Code

public function __construct(ModuleHandlerInterface $module_handler, StreamWrapperManagerInterface $stream_wrapper_manager) {
  $this->moduleHandler = $module_handler;
  $this->streamWrapperManager = $stream_wrapper_manager;
}