Twig/Extension/DataSourceExtension.php
private function getTemplates(DataSourceViewInterface $dataSource)
    {
        $templates = [];

        if (isset($this->themes[$dataSource->getName()])) {
            $templates[] = $this->themes[$dataSource->getName()];
        }

        $templates[] = $this->themes[self::DEFAULT_THEME];

        return $templates;
    }
private function getTemplates(DataSourceViewInterface $dataSource)
    {
        $templates = [];

        if (isset($this->themes[$dataSource->getName()])) {
            $templates[] = $this->themes[$dataSource->getName()];
        }

        $templates[] = $this->themes[self::DEFAULT_THEME];

        return $templates;
    }
private function getTemplates ( DataSourceViewInterface $ dataSource ) { $ templates = [ ] ; if ( isset ( $ this -> themes [ $ dataSource -> getName ( ) ] ) ) { $ templates [ ] = $ this -> themes [ $ dataSource -> getName ( ) ] ; } $ templates [ ] = $ this -> themes [ self :: DEFAULT_THEME ] ; return $ templates ; }
Return list of templates that might be useful to render DataSourceView.
Always the last template will be default one.

@param DataSourceViewInterface $dataSource
@return array
Return list of templates that might be useful to render DataSourceView . Always the last template will be default one .