function Language::__construct
Same name in this branch
- 11.1.x vendor/symfony/validator/Constraints/Language.php \Symfony\Component\Validator\Constraints\Language::__construct()
- 11.1.x core/lib/Drupal/Core/Language/Language.php \Drupal\Core\Language\Language::__construct()
- 11.1.x core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Language.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language::__construct()
Creates a new Language instance.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ConditionPluginBase::__construct
File
-
core/
modules/ language/ src/ Plugin/ Condition/ Language.php, line 52
Class
- Language
- Provides a 'Language' condition.
Namespace
Drupal\language\Plugin\ConditionCode
public function __construct(LanguageManagerInterface $language_manager, array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->languageManager = $language_manager;
}