Loading core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public function testFilter() { 'id' => 'langcode', 'table' => 'views_test_data', 'field' => 'langcode', 'value' => [$langcode], 'value' => [$langcode => $langcode], ], ]); $this->executeView($view); Loading @@ -44,7 +44,6 @@ public function testFilter() { $expected = [ '***LANGUAGE_site_default***', '***LANGUAGE_language_interface***', '***LANGUAGE_language_content***', 'en', 'xx-lolspeak', 'und', Loading core/modules/views/src/Plugin/views/PluginBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -603,7 +603,7 @@ protected function listLanguages($flags = LanguageInterface::STATE_ALL, array $c // If this (non-configurable) type is among the current values, // add that option too, so it is not lost. If not among the current // values, skip displaying it to avoid user confusion. if (isset($type['name']) && !isset($list[$id]) && in_array($id, $current_values)) { if (isset($type['name']) && !isset($list[$id]) && in_array($id, $current_values, TRUE)) { $list[$id] = $this->t('@type language selected for page', ['@type' => $type['name']]); } } Loading Loading
core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php +1 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public function testFilter() { 'id' => 'langcode', 'table' => 'views_test_data', 'field' => 'langcode', 'value' => [$langcode], 'value' => [$langcode => $langcode], ], ]); $this->executeView($view); Loading @@ -44,7 +44,6 @@ public function testFilter() { $expected = [ '***LANGUAGE_site_default***', '***LANGUAGE_language_interface***', '***LANGUAGE_language_content***', 'en', 'xx-lolspeak', 'und', Loading
core/modules/views/src/Plugin/views/PluginBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -603,7 +603,7 @@ protected function listLanguages($flags = LanguageInterface::STATE_ALL, array $c // If this (non-configurable) type is among the current values, // add that option too, so it is not lost. If not among the current // values, skip displaying it to avoid user confusion. if (isset($type['name']) && !isset($list[$id]) && in_array($id, $current_values)) { if (isset($type['name']) && !isset($list[$id]) && in_array($id, $current_values, TRUE)) { $list[$id] = $this->t('@type language selected for page', ['@type' => $type['name']]); } } Loading