public static function Language::create in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/Plugin/Condition/Language.php \Drupal\language\Plugin\Condition\Language::create()
- 9 core/modules/language/src/Plugin/Condition/Language.php \Drupal\language\Plugin\Condition\Language::create()
File
- core/
modules/ language/ src/ Plugin/ Condition/ Language.php, line 55
Class
- Language
- Provides a 'Language' condition.
Namespace
Drupal\language\Plugin\ConditionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($container
->get('language_manager'), $configuration, $plugin_id, $plugin_definition);
}