public function WebformTranslationManager::__construct in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformTranslationManager.php \Drupal\webform\WebformTranslationManager::__construct()
Constructs a WebformTranslationManager object.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.
File
- src/
WebformTranslationManager.php, line 78
Class
- WebformTranslationManager
- Defines a class to translate webform elements.
Namespace
Drupal\webformCode
public function __construct(RouteMatchInterface $route_match, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config_factory, MessengerInterface $messenger, WebformElementManagerInterface $element_manager) {
$this->routeMatch = $route_match;
$this->languageManager = $language_manager;
$this->configFactory = $config_factory;
$this->messenger = $messenger;
$this->elementManager = $element_manager;
}