src/Model/MemberProfileField.php
public function getDefaultTitle($force = true)
    {
        $fields = $this->getMemberFields();
        $field  = $fields->dataFieldByName($this->MemberField);
        $title  = $field->Title();

        if (!$title && $force) {
            $title = $field->getName();
        }

        return $title;
    }
public function getDefaultTitle($force = true)
    {
        $fields = $this->getMemberFields();
        $field  = $fields->dataFieldByName($this->MemberField);
        $title  = $field->Title();

        if (!$title && $force) {
            $title = $field->getName();
        }

        return $title;
    }
public function getDefaultTitle ( $ force = true ) { $ fields = $ this -> getMemberFields ( ) ; $ field = $ fields -> dataFieldByName ( $ this -> MemberField ) ; $ title = $ field -> Title ( ) ; if ( ! $ title && $ force ) { $ title = $ field -> getName ( ) ; } return $ title ; }
Get the default title for this field from the form field.

@param bool $force Force a non-empty title to be returned.
@return string
Get the default title for this field from the form field .