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

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

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

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

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

@return bool
Check if fields needs label .