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;
	}
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;
	}
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 ; }
generates the value for a content type header, with profiles merged in if available

@param  string             $contentType
@param  ProfileInterface[] $profiles
@return string
generates the value for a content type header with profiles merged in if available