SilverStripe\Assets\File::get_class_for_file_extension
Maps a {@link File} subclass to a specific extension.
By default, files with common image extensions will be created as instead of when using , ), and the class (either directly or through ). For manually instanciated files please use this mapping getter. Caution: Changes to mapping doesn't apply to existing file records in the database. Also doesn't hook into .
Signature
public function get_class_for_file_extension(
$ext )
Parameters
$ext
—
Returns
- String
- Classname for a subclass of {@link File}