function Language::create

Instantiates a new instance of the implementing class using autowiring.

Return value

static

Overrides PluginBase::create

File

core/modules/language/src/Plugin/Condition/Language.php, line 60

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.