lib/components/types/Relationship.php
public function getLabel($role)
    {
        $role = $this->companionRole($role);
        if ($role === 'child') {
            return 'Child ' . $this->child->title->upperSingular;
        } else {
            return 'Parent ' . $this->parent->title->upperSingular;
        }
    }
public function getLabel($role)
    {
        $role = $this->companionRole($role);
        if ($role === 'child') {
            return 'Child ' . $this->child->title->upperSingular;
        } else {
            return 'Parent ' . $this->parent->title->upperSingular;
        }
    }
public function getLabel ( $ role ) { $ role = $ this -> companionRole ( $ role ) ; if ( $ role === 'child' ) { return 'Child ' . $ this -> child -> title -> upperSingular ; } else { return 'Parent ' . $ this -> parent -> title -> upperSingular ; } }
Get label.

@param [[@doctodo param_type:role]] $role [[@doctodo param_description:role]]

@return [[@doctodo return_type:getLabel]] [[@doctodo return_description:getLabel]]
Get label .