code/Controller/AssetAdmin.php
public function getFolderCreateForm($parentId = 0)
    {
        /** @var FolderCreateFormFactory $factory */
        $factory = Injector::inst()->get(FolderCreateFormFactory::class);
        $form = $factory->getForm($this, 'folderCreateForm', [ 'ParentID' => $parentId ]);

        // Set form action handler with ParentID included
        $form->setRequestHandler(
            LeftAndMainFormRequestHandler::create($form, [ $parentId ])
        );

        return $form;
    }
public function getFolderCreateForm($parentId = 0)
    {
        /** @var FolderCreateFormFactory $factory */
        $factory = Injector::inst()->get(FolderCreateFormFactory::class);
        $form = $factory->getForm($this, 'folderCreateForm', [ 'ParentID' => $parentId ]);

        // Set form action handler with ParentID included
        $form->setRequestHandler(
            LeftAndMainFormRequestHandler::create($form, [ $parentId ])
        );

        return $form;
    }
public function getFolderCreateForm ( $ parentId = 0 ) { /** @var FolderCreateFormFactory $factory */ $ factory = Injector :: inst ( ) -> get ( FolderCreateFormFactory :: class ) ; $ form = $ factory -> getForm ( $ this , 'folderCreateForm' , [ 'ParentID' => $ parentId ] ) ; // Set form action handler with ParentID included $ form -> setRequestHandler ( LeftAndMainFormRequestHandler :: create ( $ form , [ $ parentId ] ) ) ; return $ form ; }
Returns the form to be used for creating a new folder
@param $parentId
@return Form
Returns the form to be used for creating a new folder