public function Language::__construct in Config Pages 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ConfigPagesContext/Language.php \Drupal\config_pages\Plugin\ConfigPagesContext\Language::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ConfigPagesContextBase::__construct
File
- src/
Plugin/ ConfigPagesContext/ Language.php, line 31
Class
- Language
- Provides a language config pages context.
Namespace
Drupal\config_pages\Plugin\ConfigPagesContextCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LanguageManagerInterface $language_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->languageManager = $language_manager;
}