protected function getRequiredString() { if ($this->field->isRequired()) { return "required"; } else { return ""; } }