diff --git a/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php b/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php index af4458c..0cb5370 100644 --- a/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php +++ b/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php @@ -10,6 +10,7 @@ use Drupal\Core\Condition\ConditionPluginBase; use Drupal\Component\Annotation\Plugin; use Drupal\Core\Annotation\Translation; +use Drupal\Core\Language\Language as Lang; /** * Provides a 'Language' condition. @@ -34,7 +35,7 @@ public function buildForm(array $form, array &$form_state) { $form = parent::buildForm($form, $form_state); if (language_multilingual()) { // Fetch languages. - $languages = language_list(Language::STATE_ALL); + $languages = language_list(Lang::STATE_ALL); $langcodes_options = array(); foreach ($languages as $language) { // @todo $language->name is not wrapped with t(), it should be replaced @@ -70,7 +71,7 @@ public function submitForm(array &$form, array &$form_state) { * {@inheritdoc} */ public function summary() { - $language_list = language_list(Language::STATE_ALL); + $language_list = language_list(Lang::STATE_ALL); $selected = $this->configuration['langcodes']; // Reduce the language list to an array of language names. $language_names = array_reduce($language_list, function(&$result, $item) use ($selected) { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php index 38a244e..832a0cf 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermFormController.php @@ -8,6 +8,7 @@ namespace Drupal\taxonomy; use Drupal\Core\Entity\EntityFormControllerNG; +use Drupal\Core\Language\Language; /** * Base for controller for taxonomy term edit forms.