FluidTYPO3\Flux\Form\Field\File::buildConfiguration PHP Method

buildConfiguration() public method

public buildConfiguration ( ) : array
return array
    public function buildConfiguration()
    {
        $configuration = $this->prepareConfiguration('group');
        $configuration['disallowed'] = $this->getDisallowed();
        $configuration['allowed'] = $this->getAllowed();
        $configuration['max_size'] = $this->getMaxSize();
        $configuration['uploadfolder'] = $this->getUploadFolder();
        $configuration['show_thumbs'] = $this->getShowThumbnails();
        $configuration['internal_type'] = 'file';
        if ($this->getUseFalRelation() === TRUE) {
            $configuration['internal_type'] = 'db';
            $configuration['allowed'] = 'sys_file';
            $configuration['appearance'] = array('elementBrowserAllowed' => $this->getAllowed() ? $this->getAllowed() : '*', 'elementBrowserType' => 'file');
        }
        return $configuration;
    }