You are here

public function ComponentPluginTranslate::__construct in Layout Builder Symmetric Translations 8

Creates a ComponentPluginTranslate object.

Parameters

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/EventSubscriber/ComponentPluginTranslate.php, line 48

Class

ComponentPluginTranslate
Translates the plugin configuration if needed.

Namespace

Drupal\layout_builder_st\EventSubscriber

Code

public function __construct(LanguageManagerInterface $language_manager, RouteMatchInterface $route_match) {
  $this->languageManager = $language_manager;
  $this->routeMatch = $route_match;
}