contextString($descriptor, 'principal_type'); $secondaryLabel = $principalType !== null ? Str::headline(str_replace('_', ' ', $principalType)) : 'Principal'; if (is_string($descriptor->fallbackLabel) && trim($descriptor->fallbackLabel) !== '') { return $this->externalLimited($descriptor, primaryLabel: $descriptor->fallbackLabel, secondaryLabel: $secondaryLabel); } return $this->unresolved($descriptor, primaryLabel: $secondaryLabel, secondaryLabel: $secondaryLabel); } }