public static function mergeProfilesInContentType($contentType, array $profiles) {
		if ($profiles === []) {
			return $contentType;
		}
		
		$profileLinks = [];
		foreach ($profiles as $profile) {
			$link = $profile->getAliasedLink();
			$profileLinks[] = ($link instanceof LinkObject) ? $link->toArray()['href'] : $link;
		}
		$profileLinks = implode(' ', $profileLinks);
		
		return $contentType.';profile="'.$profileLinks.'", '.$contentType;
	}