LanguageNegotiator::__construct

public LanguageNegotiator::__construct(ConfigurableLanguageManagerInterface $language_manager, PluginManagerInterface $negotiator_manager, ConfigFactoryInterface $config_factory, Settings $settings, RequestStack $requestStack)

Constructs a new LanguageNegotiator object.

Parameters

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager.

\Drupal\Component\Plugin\PluginManagerInterface $negotiator_manager: The language negotiation methods plugin manager

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Site\Settings $settings: The settings instance.

File

core/modules/language/src/LanguageNegotiator.php, line 85

Class

LanguageNegotiator
Class responsible for performing language negotiation.

Namespace

Drupal\language

Code

public function __construct(ConfigurableLanguageManagerInterface $language_manager, PluginManagerInterface $negotiator_manager, ConfigFactoryInterface $config_factory, Settings $settings, RequestStack $requestStack) {
  $this->languageManager = $language_manager;
  $this->negotiatorManager = $negotiator_manager;
  $this->configFactory = $config_factory;
  $this->settings = $settings;
  $this->requestStack = $requestStack;
}
doc_Drupal
2016-10-29 09:22:54
Comments
Leave a Comment

Please login to continue.