code/Controller/AssetAdmin.php
public function getFormFactory(File $file)
    {
        // Get service name based on file class
        $name = null;
        if ($file instanceof Folder) {
            $name = FolderFormFactory::class;
        } elseif ($file instanceof Image) {
            $name = ImageFormFactory::class;
        } else {
            $name = FileFormFactory::class;
        }
        return Injector::inst()->get($name);
    }
public function getFormFactory(File $file)
    {
        // Get service name based on file class
        $name = null;
        if ($file instanceof Folder) {
            $name = FolderFormFactory::class;
        } elseif ($file instanceof Image) {
            $name = ImageFormFactory::class;
        } else {
            $name = FileFormFactory::class;
        }
        return Injector::inst()->get($name);
    }
public function getFormFactory ( File $ file ) { // Get service name based on file class $ name = null ; if ( $ file instanceof Folder ) { $ name = FolderFormFactory :: class ; } elseif ( $ file instanceof Image ) { $ name = ImageFormFactory :: class ; } else { $ name = FileFormFactory :: class ; } return Injector :: inst ( ) -> get ( $ name ) ; }
Build a form scaffolder for this model

NOTE: Volatile api. May be moved to {@see LeftAndMain}

@param File $file
@return FormFactory
Build a form scaffolder for this model