Lines Matching refs:family
72 $family = Registry::familyFactory()->make($xref, $tree);
73 $family = Auth::checkFamilyAccess($family, false);
76 if ($family->xref() !== $xref || Registry::slugFactory()->make($family) !== $slug) {
77 return redirect($family->url(), StatusCodeInterface::STATUS_MOVED_PERMANENTLY);
80 $clipboard_facts = $this->clipboard_service->pastableFacts($family);
82 $facts = $family->facts([], true)
89 'meta_description' => $this->metaDescription($family),
91 'record' => $family,
92 'significant' => $this->significant($family),
93 'title' => $family->fullName(),
95 ])->withHeader('Link', '<' . $family->url() . '>; rel="canonical"');
102 * @param Family $family
106 private function significant(Family $family): object argument
109 'family' => $family,
114 $individual = $family->spouses()->merge($family->children())->first();
125 * @param Family $family
129 private function metaDescription(Family $family): string argument
132 $family->fullName()
135 foreach ($family->facts(['MARR', 'DIV'], true) as $fact) {
142 …meta_facts[] = Registry::elementFactory()->make($fact->tag())->labelValue($value, $family->tree());
145 if ($family->children()->isNotEmpty()) {
146 $child_names = $family->children()