diff --git a/core/lib/Drupal/Core/Language/LanguageManager.php b/core/lib/Drupal/Core/Language/LanguageManager.php index bad346d..87ac5bf 100644 --- a/core/lib/Drupal/Core/Language/LanguageManager.php +++ b/core/lib/Drupal/Core/Language/LanguageManager.php @@ -80,12 +80,12 @@ class LanguageManager { /** * Constructs a new LanguageManager object. * - * @param \Drupal\Core\KeyValueStoreInterface $state - * The state key value store. * @param array $config * An array of configuration. * @param \Drupal\Component\Plugin\PluginManagerInterface $negotiator_manager * The language negotiation methods plugin manager + * @param \Drupal\Core\KeyValueStoreInterface $state + * The state key value store. */ public function __construct(array $config, PluginManagerInterface $negotiator_manager, KeyValueStoreInterface $state = NULL) { $this->config = $config; diff --git a/core/modules/language/lib/Drupal/language/LanguageManager.php b/core/modules/language/lib/Drupal/language/LanguageManager.php index ff40096..7cb65f3 100644 --- a/core/modules/language/lib/Drupal/language/LanguageManager.php +++ b/core/modules/language/lib/Drupal/language/LanguageManager.php @@ -8,6 +8,7 @@ namespace Drupal\language; use Drupal\Core\Database\Connection; +use Drupal\Core\KeyValueStore\KeyValueStoreInterface; use Drupal\Core\Language\Language; use Drupal\Core\Language\LanguageManager as LanguageManagerBase; use Drupal\Component\Plugin\PluginManagerInterface; @@ -27,17 +28,17 @@ class LanguageManager extends LanguageManagerBase { /** * Constructs a new LanguageManager object. * - * @param \Drupal\Core\KeyValueStoreInterface $state - * The state key value store. * @param array $config * An array of configuration. * @param \Drupal\Component\Plugin\PluginManagerInterface $negotiator_manager * The language negotiation methods plugin manager. * @param \Drupal\Core\Database\Connection $database * The database connection. + * @param \Drupal\Core\KeyValueStoreInterface $state + * The state key value store. */ - public function __construct(State $state, array $config, PluginManagerInterface $negotiator_manager, Connection $database) { - parent::__construct($state, $config, $negotiator_manager); + public function __construct(array $config, PluginManagerInterface $negotiator_manager, Connection $database, KeyValueStoreInterface $state = NULL) { + parent::__construct($config, $negotiator_manager, $state); $this->database = $database; }