public function LanguageDropdownForm::__construct in Language Switcher Dropdown 8.2
Constructs a \Drupal\lang_dropdown\Form\LanguageDropdownForm object.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack object.
\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher service.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
Form/ LanguageDropdownForm.php, line 85
Class
- LanguageDropdownForm
- Language Switch Form.
Namespace
Drupal\lang_dropdown\FormCode
public function __construct(LanguageManagerInterface $language_manager, RequestStack $request_stack, PathMatcherInterface $path_matcher, RouteMatchInterface $route_match, ModuleHandlerInterface $module_handler) {
$this->languageManager = $language_manager;
$this->requestStack = $request_stack;
$this->pathMatcher = $path_matcher;
$this->routeMatch = $route_match;
$this->moduleHandler = $module_handler;
}