/** * * @param string $name */ private function addAccountValue(string $name) { if ($this->formAction === 'accountData') { $entityGetter = $this->getEntityGetter($name); FormGenerator::addItem(['value' => $this->user->getUserSession()->{$entityGetter}()]); } }