code: public function mapFormsToData($forms, &$data)
      {
          foreach ($forms as $name => $form) {
              if ($name === $this->switchName) {
                  $data = $this->getDataForSwitchValue($form->getData(), $data);
                  break;
              }
          }
  
          $this->mapper->mapFormsToData($forms, $data);
      }
docs: {@inheritdoc}