Get the description for the family.

For example, "XXX's family with new wife".

@param Family $family

@return string
182879
public function getSpouseFamilyLabel(Family $family): string
    {
        $spouse = $family->spouse($this);
        if ($spouse) {
            /* I18N: %s is the spouse name */
            return I18N::translate('Family with %s', $spouse->fullName());
        }

        return $family->fullName();
    }
1267336
private function familyQuery(string $type): string
    {
        $row = DB::table('families')
            ->where('f_file', '=', $this->tree->id())
            ->orderBy('f_numchil', 'desc')
            ->first();

        if ($row === null) {
            return '';
        }

        /** @var Family $family */
        $family = Family::rowMapper()($row);

        if (!$family->canShow()) {
            return I18N::translate('This information is private and cannot be shown.');
        }

        switch ($type) {
            default:
            case 'full':
                return $family->formatList();

            case 'size':
                return I18N::number((int) $row->f_numchil);

            case 'name':
                return '<a href="' . e($family->url()) . '">' . $family->fullName() . '</a>';
        }
    }
231257
public function getCDestructor($family)
    {
        if(!array_key_exists($family, $this->destructorsC))
        {
            throw new CoreException('Деструктор простых(C) типов пакета '.$family.' не найдена в медиаторе!');
        }

        return $this->destructorsC[$family];
    }
103410
private function getRelatedDetail($r)
    {
        $related = [];
        $rel_anime_link = $r->href;
        $separated_anime_link = explode('/', $rel_anime_link);

        $related['id'] = $separated_anime_link[2];
        $related['title'] = $r->plaintext;
        $related['type'] = $separated_anime_link[1];

        return $related;
    }
333312
private function getMetaDescription(): string {
        $desc = $this->getMetaContent($this->article()->getDoc(), 'name', 'description');

        if (empty($desc)) {
            $desc = $this->getMetaContent($this->article()->getDoc(), 'property', 'og:description');
        }

        if (empty($desc)) {
            $desc = $this->getMetaContent($this->article()->getDoc(), 'name', 'twitter:description');
        }

        return trim($desc);
    }
689189
public function getEAVAttributes(FamilyInterface $family, array $attributePaths): array
    {
        $attributes = [];
        foreach ($attributePaths as $attributePath) {
            $attribute = null;
            /** @var AttributeInterface $attribute */
            foreach (explode('.', $attributePath) as $attributeCode) {
                if (null !== $attribute) { // This means we're in a nested attribute
                    $families = $attribute->getOption('allowed_families', []);
                    if (1 !== \count($families)) {
                        throw new \UnexpectedValueException(
                            "Bad 'allowed_families' configuration for attribute {$attribute->getCode()}"
                        );
                    }
                    $family = $this->familyRegistry->getFamily(reset($families));
                    $attribute = $family->getAttribute($attributeCode); // No check on attribute existence: crash
                } else { // else we're at root level
                    $attribute = $family->getAttribute($attributeCode);
                }
            }

            if ($attribute) {
                $attributes[] = $attribute;
            }
        }

        return $attributes;
    }
917531
protected final Person getFather(final Family family) {
        final FamilyNavigator navigator = new FamilyNavigator(family);
        return navigator.getFather();
    }
567407
def descfile(family_directory):
  """"""
  if family_directory:
    descfilepath = os.path.join(family_directory, "DESCRIPTION.en_us.html")
    if os.path.exists(descfilepath):
      return descfilepath
688822
public function getAInitializer($family)
    {
        if(!array_key_exists($family, $this->initializersA))
        {
            throw new CoreException('Инициализатор агрегатных(A) типов пакета '.$family.' не найдена в медиаторе!');
        }

        return $this->initializersA[$family];
    }
1274681
def get_family(families):
    """"""
    if not isinstance(families, list):
        families = [ families ]
    for family in families:
        if font_is_installed(family):
            return family
    else:
        print("Warning: None of the following fonts is installed: %r" % families)  # spyder: test-skip
        return QFont().family()
317370
public function getCurrentSpouse(): ?Individual
    {
        $family = $this->spouseFamilies()->last();

        if ($family instanceof Family) {
            return $family->spouse($this);
        }

        return null;
    }
1358058
protected function getFamilyConfig($family)
    {
        if (!isset($this->config[$family])) {
            throw new \InvalidArgumentException(
                sprintf('Undefined measure family "%s"', $family)
            );
        }

        return $this->config[$family];
    }
643532
public function getDataGridConfigCode(Action $action, FamilyInterface $family): string
    {
        $familiesOptions = $action->getAdmin()->getOption('families', []);
        if (isset($familiesOptions[$family->getCode()]['datagrid'])) {
            return $familiesOptions[$family->getCode()]['datagrid'];
        }

        // Check if datagrid code is set in options
        $dataGridCode = $action->getOption(
            'datagrid',
            $action->getAdmin()->getOption('datagrid')
        );
        if (null !== $dataGridCode) {
            return $dataGridCode;
        }

        // Check if a datagrid corresponding to the current family exists
        foreach ([$family->getCode(), strtolower($family->getCode())] as $dataGridCode) {
            if ($this->dataGridRegistry->hasDataGrid($dataGridCode)) {
                return $dataGridCode;
            }
        }

        return $action->getAdmin()->getCode(); // Fallback to admin code
    }
1279687
def get_family_info(familyname, filtertype='r', imagetype='p'):
    

    # establish input
    family_list = '{}/{}_family.txt'.format(_FAMILY_LISTS, familyname)

    if os.path.exists(family_list):
        with open(family_list) as infile:
            filestr = infile.read()
        object_list = filestr.split('\n')  # array of objects to query
    elif familyname == 'all':
        object_list = find_family.get_all_families_list()
    else:
        object_list = find_family.find_family_members(familyname)

    for obj in object_list[0:len(object_list) - 1]:  # skip header lines
        get_member_info(obj, filtertype)
58046
public function getPersons(Tree $tree, string $request): string
    {
        $json_requests = explode(';', $request);
        $r    = [];
        foreach ($json_requests as $json_request) {
            $firstLetter = substr($json_request, 0, 1);
            $json_request = substr($json_request, 1);

            switch ($firstLetter) {
                case 'c':
                    $families = Collection::make(explode(',', $json_request))
                        ->map(static function (string $xref) use ($tree): ?Family {
                            return Family::getInstance($xref, $tree);
                        })
                        ->filter();

                    $r[] = $this->drawChildren($families, 1, true);
                    break;

                case 'p':
                    [$xref, $order] = explode('@', $json_request);

                    $family = Family::getInstance($xref, $tree);
                    if ($family instanceof Family) {
                        // Prefer the paternal line
                        $parent = $family->husband() ?? $family->wife();

                        // The family may have no parents (just children).
                        if ($parent instanceof Individual) {
                            $r[] = $this->drawPerson($parent, 0, 1, $family, $order, false);
                        }
                    }
                    break;
            }
        }

        return json_encode($r);
    }
260527
public function getAMapper($family)
    {
        if(!array_key_exists($family, $this->mappersA))
        {
            throw new ExtractorException('Маппер агрегатных(A) типов пакета '.$family.' не найдена в медиаторе!');
        }

        return $this->mappersA[$family];
    }
81876
public function getOwnSynchronizer($family)
    {
        if(!array_key_exists($family, $this->synchronizersOwn))
        {
            throw new CoreException('Синхронизатор полей типа пакета '.$family.' не найдена в медиаторе!');
        }

        return $this->synchronizersOwn[$family];
    }