public function createTemplate(array $data, $name = 'cookiebar')
    {
        $template = new FrontendTemplate($name);
        $this->setBasicData($template, $data);
        $this->setMoreLinkData($template, $data);
        $this->setAnalyticsCheckboxData($template, $data);

        // Cookie name
        $template->cookie = sprintf('COOKIEBAR_%s', $data['id']);

        return $template;
    }
public function createTemplate(array $data, $name = 'cookiebar')
    {
        $template = new FrontendTemplate($name);
        $this->setBasicData($template, $data);
        $this->setMoreLinkData($template, $data);
        $this->setAnalyticsCheckboxData($template, $data);

        // Cookie name
        $template->cookie = sprintf('COOKIEBAR_%s', $data['id']);

        return $template;
    }
public function createTemplate ( array $ data , $ name = 'cookiebar' ) { $ template = new FrontendTemplate ( $ name ) ; $ this -> setBasicData ( $ template , $ data ) ; $ this -> setMoreLinkData ( $ template , $ data ) ; $ this -> setAnalyticsCheckboxData ( $ template , $ data ) ; // Cookie name $ template -> cookie = sprintf ( 'COOKIEBAR_%s' , $ data [ 'id' ] ) ; return $ template ; }
Create the cookie bar template.

@param array  $data
@param string $name

@return FrontendTemplate
Create the cookie bar template .