app/Tree.php
public function significantIndividual(UserInterface $user): Individual
    {
        $individual = null;

        if ($this->getUserPreference($user, 'rootid') !== '') {
            $individual = Individual::getInstance($this->getUserPreference($user, 'rootid'), $this);
        }

        if ($individual === null && $this->getUserPreference($user, 'gedcomid') !== '') {
            $individual = Individual::getInstance($this->getUserPreference($user, 'gedcomid'), $this);
        }

        if ($individual === null && $this->getPreference('PEDIGREE_ROOT_ID') !== '') {
            $individual = Individual::getInstance($this->getPreference('PEDIGREE_ROOT_ID'), $this);
        }
        if ($individual === null) {
            $xref = (string) DB::table('individuals')
                ->where('i_file', '=', $this->id())
                ->min('i_id');

            $individual = Individual::getInstance($xref, $this);
        }
        if ($individual === null) {
            // always return a record
            $individual = new Individual('I', '0 @I@ INDI', null, $this);
        }

        return $individual;
    }
public function significantIndividual(UserInterface $user): Individual
    {
        $individual = null;

        if ($this->getUserPreference($user, 'rootid') !== '') {
            $individual = Individual::getInstance($this->getUserPreference($user, 'rootid'), $this);
        }

        if ($individual === null && $this->getUserPreference($user, 'gedcomid') !== '') {
            $individual = Individual::getInstance($this->getUserPreference($user, 'gedcomid'), $this);
        }

        if ($individual === null && $this->getPreference('PEDIGREE_ROOT_ID') !== '') {
            $individual = Individual::getInstance($this->getPreference('PEDIGREE_ROOT_ID'), $this);
        }
        if ($individual === null) {
            $xref = (string) DB::table('individuals')
                ->where('i_file', '=', $this->id())
                ->min('i_id');

            $individual = Individual::getInstance($xref, $this);
        }
        if ($individual === null) {
            // always return a record
            $individual = new Individual('I', '0 @I@ INDI', null, $this);
        }

        return $individual;
    }
public function significantIndividual ( UserInterface $ user ) : Individual { $ individual = null ; if ( $ this -> getUserPreference ( $ user , 'rootid' ) !== '' ) { $ individual = Individual :: getInstance ( $ this -> getUserPreference ( $ user , 'rootid' ) , $ this ) ; } if ( $ individual === null && $ this -> getUserPreference ( $ user , 'gedcomid' ) !== '' ) { $ individual = Individual :: getInstance ( $ this -> getUserPreference ( $ user , 'gedcomid' ) , $ this ) ; } if ( $ individual === null && $ this -> getPreference ( 'PEDIGREE_ROOT_ID' ) !== '' ) { $ individual = Individual :: getInstance ( $ this -> getPreference ( 'PEDIGREE_ROOT_ID' ) , $ this ) ; } if ( $ individual === null ) { $ xref = ( string ) DB :: table ( 'individuals' ) -> where ( 'i_file' , '=' , $ this -> id ( ) ) -> min ( 'i_id' ) ; $ individual = Individual :: getInstance ( $ xref , $ this ) ; } if ( $ individual === null ) { // always return a record $ individual = new Individual ( 'I' , '0 @I@ INDI' , null , $ this ) ; } return $ individual ; }
What is the most significant individual in this tree.

@param UserInterface $user

@return Individual
What is the most significant individual in this tree .