Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.617 kB
<?php
namespace AntiMattr\GoogleBundle\Extension;
use AntiMattr\GoogleBundle\Helper\AdwordsHelper;
class AdwordsExtension extends \Twig_Extension
{
private $adwordsHelper;
public function __construct(AdwordsHelper $adwordsHelper)
{
$this->adwordsHelper = $adwordsHelper;
}
public function getGlobals()
{
return array(
'google_adwords' => $this->adwordsHelper
);
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName()
{
return 'google_adwords';
}
}
Jump to Line
Something went wrong with that request. Please try again.