You are here

public function LanguageDropdownBlock::__construct in Language Switcher Dropdown 8.2

Same name in this branch
  1. 8.2 src/Plugin/Derivative/LanguageDropdownBlock.php \Drupal\lang_dropdown\Plugin\Derivative\LanguageDropdownBlock::__construct()
  2. 8.2 src/Plugin/Block/LanguageDropdownBlock.php \Drupal\lang_dropdown\Plugin\Block\LanguageDropdownBlock::__construct()

Constructs new LanguageDropdownBlock.

Parameters

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

File

src/Plugin/Derivative/LanguageDropdownBlock.php, line 32

Class

LanguageDropdownBlock
Provides dropdown switcher block plugin definitions for all languages.

Namespace

Drupal\lang_dropdown\Plugin\Derivative

Code

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