Twig/Extension/DataSourceExtension.php
public function setTheme(DataSourceViewInterface $dataSource, $theme, array $vars = [])
    {
        $this->themes[$dataSource->getName()] = ($theme instanceof Twig_Template)
            ? $theme
            : $this->environment->loadTemplate($theme);
        $this->themesVars[$dataSource->getName()] = $vars;
    }
public function setTheme(DataSourceViewInterface $dataSource, $theme, array $vars = [])
    {
        $this->themes[$dataSource->getName()] = ($theme instanceof Twig_Template)
            ? $theme
            : $this->environment->loadTemplate($theme);
        $this->themesVars[$dataSource->getName()] = $vars;
    }
public function setTheme ( DataSourceViewInterface $ dataSource , $ theme , array $ vars = [ ] ) { $ this -> themes [ $ dataSource -> getName ( ) ] = ( $ theme instanceof Twig_Template ) ? $ theme : $ this -> environment -> loadTemplate ( $ theme ) ; $ this -> themesVars [ $ dataSource -> getName ( ) ] = $ vars ; }
Set theme for specific DataSource.
Theme is nothing more than twig template that contains some or all of blocks required to render DataSource.

@param DataSourceViewInterface $dataSource
@param $theme
@param array $vars
Set theme for specific DataSource . Theme is nothing more than twig template that contains some or all of blocks required to render DataSource .