app/Http/Controllers/FamilyController.php
public function show(ServerRequestInterface $request, Tree $tree, ClipboardService $clipboard_service): ResponseInterface
    {
        $xref   = $request->get('xref', '');
        $family = Family::getInstance($xref, $tree);

        Auth::checkFamilyAccess($family, false);

        $clipboard_facts = $clipboard_service->pastableFacts($family, new Collection());

        return $this->viewResponse('family-page', [
            'facts'           => $family->facts([], true),
            'meta_robots'     => 'index,follow',
            'clipboard_facts' => $clipboard_facts,
            'record'          => $family,
            'significant'     => $this->significant($family),
            'title'           => $family->fullName(),
        ]);
    }
public function show(ServerRequestInterface $request, Tree $tree, ClipboardService $clipboard_service): ResponseInterface
    {
        $xref   = $request->get('xref', '');
        $family = Family::getInstance($xref, $tree);

        Auth::checkFamilyAccess($family, false);

        $clipboard_facts = $clipboard_service->pastableFacts($family, new Collection());

        return $this->viewResponse('family-page', [
            'facts'           => $family->facts([], true),
            'meta_robots'     => 'index,follow',
            'clipboard_facts' => $clipboard_facts,
            'record'          => $family,
            'significant'     => $this->significant($family),
            'title'           => $family->fullName(),
        ]);
    }
public function show ( ServerRequestInterface $ request , Tree $ tree , ClipboardService $ clipboard_service ) : ResponseInterface { $ xref = $ request -> get ( 'xref' , '' ) ; $ family = Family :: getInstance ( $ xref , $ tree ) ; Auth :: checkFamilyAccess ( $ family , false ) ; $ clipboard_facts = $ clipboard_service -> pastableFacts ( $ family , new Collection ( ) ) ; return $ this -> viewResponse ( 'family-page' , [ 'facts' => $ family -> facts ( [ ] , true ) , 'meta_robots' => 'index,follow' , 'clipboard_facts' => $ clipboard_facts , 'record' => $ family , 'significant' => $ this -> significant ( $ family ) , 'title' => $ family -> fullName ( ) , ] ) ; }
Show a family's page.

@param ServerRequestInterface $request
@param Tree                   $tree
@param ClipboardService       $clipboard_service

@return ResponseInterface
Show a family s page .