code/Forms/AssetFormFactory.php
protected function getFormFieldDetailsTab($record, $context = [])
    {
        /** @var Tab $tab */
        $tab = Tab::create(
            'Details',
            TextField::create('Name', _t(__CLASS__.'.FILENAME', 'Filename')),
            $location = TreeDropdownField::create(
                'ParentID',
                _t(__CLASS__.'.FOLDERLOCATION', 'Location'),
                Folder::class
            )
                ->setShowSelectedPath(true)
        );

        $location
            ->setEmptyString(_t(__CLASS__.'.ROOTNAME', '(Top level)'))
            ->setShowSearch(true);
        return $tab;
    }
protected function getFormFieldDetailsTab($record, $context = [])
    {
        /** @var Tab $tab */
        $tab = Tab::create(
            'Details',
            TextField::create('Name', _t(__CLASS__.'.FILENAME', 'Filename')),
            $location = TreeDropdownField::create(
                'ParentID',
                _t(__CLASS__.'.FOLDERLOCATION', 'Location'),
                Folder::class
            )
                ->setShowSelectedPath(true)
        );

        $location
            ->setEmptyString(_t(__CLASS__.'.ROOTNAME', '(Top level)'))
            ->setShowSearch(true);
        return $tab;
    }
protected function getFormFieldDetailsTab ( $ record , $ context = [ ] ) { /** @var Tab $tab */ $ tab = Tab :: create ( 'Details' , TextField :: create ( 'Name' , _t ( __CLASS__ . '.FILENAME' , 'Filename' ) ) , $ location = TreeDropdownField :: create ( 'ParentID' , _t ( __CLASS__ . '.FOLDERLOCATION' , 'Location' ) , Folder :: class ) -> setShowSelectedPath ( true ) ) ; $ location -> setEmptyString ( _t ( __CLASS__ . '.ROOTNAME' , '(Top level)' ) ) -> setShowSearch ( true ) ; return $ tab ; }
Build "details" formfield tab

@param File $record
@param array $context
@return Tab
Build details formfield tab