You are here

public static function Language::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/Plugin/Condition/Language.php \Drupal\language\Plugin\Condition\Language::create()
  2. 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\Condition

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($container
    ->get('language_manager'), $configuration, $plugin_id, $plugin_definition);
}