PHP Class Elcodi\Plugin\FacebookBundle\Templating\SharePostRenderer

Inheritance: use trait Elcodi\Component\Plugin\Templating\Traits\TemplatingTrait
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin
$translator Symfony\Component\Translation\TranslatorInterface A translator
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface An url generator

Public Methods

Method Description
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Translation\TranslatorInterface $translator ) Builds a new share tweet renderer class.
renderShareOrder ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event ) Renders the share product button.
renderShareProduct ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event ) Renders the share product button.
setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin ) Set plugin

Method Details

__construct() public method

Builds a new share tweet renderer class.
public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Translation\TranslatorInterface $translator )
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface An url generator
$translator Symfony\Component\Translation\TranslatorInterface A translator

renderShareOrder() public method

Renders the share product button.
public renderShareOrder ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface The event

renderShareProduct() public method

Renders the share product button.
public renderShareProduct ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface The event

setPlugin() public method

Set plugin
public setPlugin ( Elcodi\Component\Plugin\Entity\Plugin $plugin )
$plugin Elcodi\Component\Plugin\Entity\Plugin Plugin

Property Details

$plugin protected property

Plugin
protected Plugin,Elcodi\Component\Plugin\Entity $plugin
return Elcodi\Component\Plugin\Entity\Plugin

$translator protected property

A translator
protected TranslatorInterface,Symfony\Component\Translation $translator
return Symfony\Component\Translation\TranslatorInterface

$urlGenerator protected property

An url generator
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator
return Symfony\Component\Routing\Generator\UrlGeneratorInterface