/** * Check if a field is unwrappable (no label) * * @return boolean */ public function isUnwrappable() { return Former::form()->type == 'inline' or in_array($this->type, array('hidden', 'submit', 'button', 'reset')) or $this->controlGroup and $this->controlGroup->isRaw(); }