You are here

public function RouteHelper::__construct in Theme Compiler 2.0.x

Same name and namespace in other branches
  1. 8 src/Routing/RouteHelper.php \Drupal\theme_compiler\Routing\RouteHelper::__construct()

Constructs a RouteHelper object.

Parameters

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.

File

src/Routing/RouteHelper.php, line 43

Class

RouteHelper
Builds the route(s) that facilitate compilation of theme-provided assets.

Namespace

Drupal\theme_compiler\Routing

Code

public function __construct(ThemeHandlerInterface $theme_handler) {

  // Create a new YAML discovery plugin for 'theme_compiler' configuration.
  $this->discovery = new YamlDiscovery('theme_compiler', $theme_handler
    ->getThemeDirectories());
}