protected function needsLabel(array $options = [])
    {
        // If field is <select> and child of choice, we don't need label for it
        $isChildSelect = $this->type == 'select' && array_get($options, 'is_child') === true;

        if ($this->type == 'hidden' || $isChildSelect) {
            return false;
        }

        return true;
    }
protected function needsLabel(array $options = [])
    {
        // If field is <select> and child of choice, we don't need label for it
        $isChildSelect = $this->type == 'select' && array_get($options, 'is_child') === true;

        if ($this->type == 'hidden' || $isChildSelect) {
            return false;
        }

        return true;
    }
protected function needsLabel ( array $ options = [ ] ) { // If field is <select> and child of choice, we don't need label for it $ isChildSelect = $ this -> type == 'select' && array_get ( $ options , 'is_child' ) === true ; if ( $ this -> type == 'hidden' || $ isChildSelect ) { return false ; } return true ; }
Check if fields needs label

@param array $options
@return bool
Check if fields needs label