FluidTYPO3\Flux\ViewHelpers\Field\FileViewHelper::getComponent PHP Method

getComponent() public static method

public static getComponent ( TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext, array $arguments ) : File
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
$arguments array
return FluidTYPO3\Flux\Form\Field\File
    public static function getComponent(RenderingContextInterface $renderingContext, array $arguments)
    {
        /** @var File $component */
        $component = static::getPreparedComponent('File', $renderingContext, $arguments);
        $component->setMaxSize($arguments['maxSize']);
        $component->setDisallowed($arguments['disallowed']);
        $component->setAllowed($arguments['allowed']);
        $component->setUploadFolder($arguments['uploadFolder']);
        $component->setShowThumbnails($arguments['showThumbnails']);
        $component->setUseFalRelation($arguments['useFalRelation']);
        return $component;
    }