src/MediaUploader.php
public function possibleAggregateTypesForExtension($extension)
    {
        $types = [];
        foreach ($this->config['aggregate_types'] as $type => $attributes) {
            if (in_array($extension, $attributes['extensions'])) {
                $types[] = $type;
            }
        }

        return $types;
    }
public function possibleAggregateTypesForExtension($extension)
    {
        $types = [];
        foreach ($this->config['aggregate_types'] as $type => $attributes) {
            if (in_array($extension, $attributes['extensions'])) {
                $types[] = $type;
            }
        }

        return $types;
    }
public function possibleAggregateTypesForExtension ( $ extension ) { $ types = [ ] ; foreach ( $ this -> config [ 'aggregate_types' ] as $ type => $ attributes ) { if ( in_array ( $ extension , $ attributes [ 'extensions' ] ) ) { $ types [ ] = $ type ; } } return $ types ; }
Determine the aggregate type of the file based on the extension.
@param  string $extension
@return string[]
Determine the aggregate type of the file based on the extension .