public possibleAggregateTypesForMimeType ( string $mime ) : string | ||
$mime | string | |
return | string |
public function possibleAggregateTypesForMimeType($mime)
{
$types = [];
foreach ($this->config['aggregate_types'] as $type => $attributes) {
if (in_array($mime, $attributes['mime_types'])) {
$types[] = $type;
}
}
return $types;
}