private function hasError($fieldName) { return "\$context['form_{$this->form}']->getField('" . $fieldName . "')->getErrors() "; }