diff --git a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
index 6f6ffc3..f8c3b4b 100644
--- a/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
+++ b/core/lib/Drupal/Core/Condition/ConditionPluginBase.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\Core\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Cache\Cache;
 use Drupal\Core\Cache\CacheableDependencyInterface;
 use Drupal\Core\Executable\ExecutableManagerInterface;
@@ -74,7 +75,8 @@ public function validateConfigurationForm(array &$form, FormStateInterface $form
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['negate'] = $form_state->getValue('negate');
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['negate'] = $values['negate'];
   }
 
   /**
diff --git a/core/modules/language/src/Plugin/Condition/Language.php b/core/modules/language/src/Plugin/Condition/Language.php
index 77fdc08..04046fc 100644
--- a/core/modules/language/src/Plugin/Condition/Language.php
+++ b/core/modules/language/src/Plugin/Condition/Language.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\language\Plugin\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Condition\ConditionPluginBase;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Language\LanguageInterface;
@@ -99,7 +100,8 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['langcodes'] = array_filter($form_state->getValue('langcodes'));
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['langcodes'] = array_filter($values['langcodes']);
     parent::submitConfigurationForm($form, $form_state);
   }
 
diff --git a/core/modules/node/src/Plugin/Condition/NodeType.php b/core/modules/node/src/Plugin/Condition/NodeType.php
index 77f9a3f..19d4d0b 100644
--- a/core/modules/node/src/Plugin/Condition/NodeType.php
+++ b/core/modules/node/src/Plugin/Condition/NodeType.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\node\Plugin\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Condition\ConditionPluginBase;
 use Drupal\Core\Entity\EntityStorageInterface;
 use Drupal\Core\Form\FormStateInterface;
@@ -88,7 +89,8 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['bundles'] = array_filter($form_state->getValue('bundles'));
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['bundles'] = array_filter($values['bundles']);
     parent::submitConfigurationForm($form, $form_state);
   }
 
diff --git a/core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php b/core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
index 3b82d48..168b86c 100644
--- a/core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
+++ b/core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\system\Plugin\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Condition\ConditionPluginBase;
 use Drupal\Core\Extension\ThemeHandlerInterface;
 use Drupal\Core\Form\FormStateInterface;
@@ -97,7 +98,8 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['theme'] = $form_state->getValue('theme');
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['theme'] = $values['theme'];
     parent::submitConfigurationForm($form, $form_state);
   }
 
diff --git a/core/modules/system/src/Plugin/Condition/RequestPath.php b/core/modules/system/src/Plugin/Condition/RequestPath.php
index 64331be..a48aa2e 100644
--- a/core/modules/system/src/Plugin/Condition/RequestPath.php
+++ b/core/modules/system/src/Plugin/Condition/RequestPath.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\system\Plugin\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Condition\ConditionPluginBase;
 use Drupal\Core\Form\FormStateInterface;
@@ -124,7 +125,8 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['pages'] = $form_state->getValue('pages');
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['pages'] = $values['pages'];
     parent::submitConfigurationForm($form, $form_state);
   }
 
diff --git a/core/modules/user/src/Plugin/Condition/UserRole.php b/core/modules/user/src/Plugin/Condition/UserRole.php
index 3316cbc..d2638e5 100644
--- a/core/modules/user/src/Plugin/Condition/UserRole.php
+++ b/core/modules/user/src/Plugin/Condition/UserRole.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\user\Plugin\Condition;
 
+use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Condition\ConditionPluginBase;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Plugin\Context\ContextDefinition;
@@ -52,7 +53,8 @@ public function defaultConfiguration() {
    * {@inheritdoc}
    */
   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
-    $this->configuration['roles'] = array_filter($form_state->getValue('roles'));
+    $values = NestedArray::getValue($form_state->getValues(), $form['#parents']);
+    $this->configuration['roles'] = array_filter($values['roles']);
     parent::submitConfigurationForm($form, $form_state);
   }
 
