app/Module/ModuleThemeTrait.php
public function individualBoxMenuFamilyLinks(Individual $individual): array
    {
        $menus = [];

        foreach ($individual->spouseFamilies() as $family) {
            $menus[] = new Menu('<strong>' . I18N::translate('Family with spouse') . '</strong>', $family->url());
            $spouse  = $family->spouse($individual);
            if ($spouse && $spouse->canShowName()) {
                $menus[] = new Menu($spouse->fullName(), $spouse->url());
            }
            foreach ($family->children() as $child) {
                if ($child->canShowName()) {
                    $menus[] = new Menu($child->fullName(), $child->url());
                }
            }
        }

        return $menus;
    }
public function individualBoxMenuFamilyLinks(Individual $individual): array
    {
        $menus = [];

        foreach ($individual->spouseFamilies() as $family) {
            $menus[] = new Menu('<strong>' . I18N::translate('Family with spouse') . '</strong>', $family->url());
            $spouse  = $family->spouse($individual);
            if ($spouse && $spouse->canShowName()) {
                $menus[] = new Menu($spouse->fullName(), $spouse->url());
            }
            foreach ($family->children() as $child) {
                if ($child->canShowName()) {
                    $menus[] = new Menu($child->fullName(), $child->url());
                }
            }
        }

        return $menus;
    }
public function individualBoxMenuFamilyLinks ( Individual $ individual ) : array { $ menus = [ ] ; foreach ( $ individual -> spouseFamilies ( ) as $ family ) { $ menus [ ] = new Menu ( '<strong>' . I18N :: translate ( 'Family with spouse' ) . '</strong>' , $ family -> url ( ) ) ; $ spouse = $ family -> spouse ( $ individual ) ; if ( $ spouse && $ spouse -> canShowName ( ) ) { $ menus [ ] = new Menu ( $ spouse -> fullName ( ) , $ spouse -> url ( ) ) ; } foreach ( $ family -> children ( ) as $ child ) { if ( $ child -> canShowName ( ) ) { $ menus [ ] = new Menu ( $ child -> fullName ( ) , $ child -> url ( ) ) ; } } } return $ menus ; }
Family links, to show in chart boxes.

@param Individual $individual

@return Menu[]
Family links to show in chart boxes .