Mapper/AbstractSwitchMapper.php
public function mapDataToForms($data, $forms)
    {
        $this->mapper->mapDataToForms($data, $forms);

        foreach ($forms as $name => $form) {
            if ($name === $this->switchName) {
                $form->setData($this->getSwitchValueForData($data, $form->getData()));
                break;
            }
        }
    }
public function mapDataToForms($data, $forms)
    {
        $this->mapper->mapDataToForms($data, $forms);

        foreach ($forms as $name => $form) {
            if ($name === $this->switchName) {
                $form->setData($this->getSwitchValueForData($data, $form->getData()));
                break;
            }
        }
    }
{@inheritdoc}