CRUDlex\FileProcessorInterface::renderFile PHP Method

renderFile() public method

Renders (outputs) a file of an entity. This includes setting headers like the file size, mimetype and name, too.
public renderFile ( Entity $entity, string $entityName, string $field ) : Response
$entity Entity the entity to render the file from
$entityName string the name of the entity as this class here is not aware of it
$field string the field of the entity containing the file to be rendered
return Symfony\Component\HttpFoundation\Response the HTTP response, likely to be a streamed one
    public function renderFile(Entity $entity, $entityName, $field);