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

        Auth::checkNoteAccess($record, false);

        return $this->viewResponse('note-page', [
            'clipboard_facts' => $clipboard_service->pastableFacts($record, new Collection()),
            'facts'         => $this->facts($record),
            'families'      => $record->linkedFamilies('NOTE'),
            'individuals'   => $record->linkedIndividuals('NOTE'),
            'note'          => $record,
            'notes'         => [],
            'media_objects' => $record->linkedMedia('NOTE'),
            'meta_robots'   => 'index,follow',
            'sources'       => $record->linkedSources('NOTE'),
            'text'          => Filter::formatText($record->getNote(), $tree),
            'title'         => $record->fullName(),
        ]);
    }
public function show(ServerRequestInterface $request, Tree $tree, ClipboardService $clipboard_service): ResponseInterface
    {
        $xref   = $request->get('xref', '');
        $record = Note::getInstance($xref, $tree);

        Auth::checkNoteAccess($record, false);

        return $this->viewResponse('note-page', [
            'clipboard_facts' => $clipboard_service->pastableFacts($record, new Collection()),
            'facts'         => $this->facts($record),
            'families'      => $record->linkedFamilies('NOTE'),
            'individuals'   => $record->linkedIndividuals('NOTE'),
            'note'          => $record,
            'notes'         => [],
            'media_objects' => $record->linkedMedia('NOTE'),
            'meta_robots'   => 'index,follow',
            'sources'       => $record->linkedSources('NOTE'),
            'text'          => Filter::formatText($record->getNote(), $tree),
            'title'         => $record->fullName(),
        ]);
    }
public function show ( ServerRequestInterface $ request , Tree $ tree , ClipboardService $ clipboard_service ) : ResponseInterface { $ xref = $ request -> get ( 'xref' , '' ) ; $ record = Note :: getInstance ( $ xref , $ tree ) ; Auth :: checkNoteAccess ( $ record , false ) ; return $ this -> viewResponse ( 'note-page' , [ 'clipboard_facts' => $ clipboard_service -> pastableFacts ( $ record , new Collection ( ) ) , 'facts' => $ this -> facts ( $ record ) , 'families' => $ record -> linkedFamilies ( 'NOTE' ) , 'individuals' => $ record -> linkedIndividuals ( 'NOTE' ) , 'note' => $ record , 'notes' => [ ] , 'media_objects' => $ record -> linkedMedia ( 'NOTE' ) , 'meta_robots' => 'index,follow' , 'sources' => $ record -> linkedSources ( 'NOTE' ) , 'text' => Filter :: formatText ( $ record -> getNote ( ) , $ tree ) , 'title' => $ record -> fullName ( ) , ] ) ; }
Show a note's page.

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

@return ResponseInterface
Show a note s page .