src/Twig/DownloadExtension.php
public function getFilters()
    {
        return [
            new TwigFilter('download', [$this, 'getDownload']),
            new TwigFilter('download_link', [$this, 'getDownloadLink']),
            new TwigFilter('download_path', [$this, 'getDownloadPath']),
            new TwigFilter('download_data', [$this, 'getDownloadData']),
            new TwigFilter('download_title', [$this, 'getDownloadTitle']),
        ];
    }
public function getFilters()
    {
        return [
            new TwigFilter('download', [$this, 'getDownload']),
            new TwigFilter('download_link', [$this, 'getDownloadLink']),
            new TwigFilter('download_path', [$this, 'getDownloadPath']),
            new TwigFilter('download_data', [$this, 'getDownloadData']),
            new TwigFilter('download_title', [$this, 'getDownloadTitle']),
        ];
    }
public function getFilters ( ) { return [ new TwigFilter ( 'download' , [ $ this , 'getDownload' ] ) , new TwigFilter ( 'download_link' , [ $ this , 'getDownloadLink' ] ) , new TwigFilter ( 'download_path' , [ $ this , 'getDownloadPath' ] ) , new TwigFilter ( 'download_data' , [ $ this , 'getDownloadData' ] ) , new TwigFilter ( 'download_title' , [ $ this , 'getDownloadTitle' ] ) , ] ; }
Get list of twig filters.

@return array|\Twig_SimpleFilter[]
Get list of twig filters .