You are here

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

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

Constructs a new BackgroundImageRoutes object.

Parameters

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.

File

src/Routing/BackgroundImageRoutes.php, line 28

Class

BackgroundImageRoutes
Defines a route subscriber to register a url for serving background image CSS.

Namespace

Drupal\background_image\Routing

Code

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