You are here

public function RoutePathSubscriber::__construct in Tome 8

Constructs the RoutePathSubscriber object.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

modules/tome_static/src/EventSubscriber/RoutePathSubscriber.php, line 42

Class

RoutePathSubscriber
Adds route paths to the list of paths to export.

Namespace

Drupal\tome_static\EventSubscriber

Code

public function __construct(RouteProviderInterface $route_provider, LanguageManagerInterface $language_manager) {
  $this->routeProvider = $route_provider;
  $this->languageManager = $language_manager;
}