app/Fact.php
public function label(): string
    {
        // Custom FACT/EVEN - with a TYPE
        if (($this->tag === 'FACT' || $this->tag === 'EVEN') && $this->attribute('TYPE') !== '') {
            return I18N::translate(e($this->attribute('TYPE')));
        }

        return GedcomTag::getLabel($this->tag, $this->record);
    }
public function label(): string
    {
        // Custom FACT/EVEN - with a TYPE
        if (($this->tag === 'FACT' || $this->tag === 'EVEN') && $this->attribute('TYPE') !== '') {
            return I18N::translate(e($this->attribute('TYPE')));
        }

        return GedcomTag::getLabel($this->tag, $this->record);
    }
public function label ( ) : string { // Custom FACT/EVEN - with a TYPE if ( ( $ this -> tag === 'FACT' || $ this -> tag === 'EVEN' ) && $ this -> attribute ( 'TYPE' ) !== '' ) { return I18N :: translate ( e ( $ this -> attribute ( 'TYPE' ) ) ) ; } return GedcomTag :: getLabel ( $ this -> tag , $ this -> record ) ; }
Get the name of this fact type, for use as a label.

@return string
Get the name of this fact type for use as a label .