Elcodi\Plugin\FacebookBundle\Templating\SharePostRenderer::renderShareOrder PHP Метод

renderShareOrder() публичный Метод

Renders the share product button.
public renderShareOrder ( Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface $event )
$event Elcodi\Component\Plugin\EventDispatcher\Interfaces\EventInterface The event
    public function renderShareOrder(EventInterface $event)
    {
        if ($this->plugin->isUsable()) {
            $shareUrl = $this->urlGenerator->generate('store_homepage', [], true);
            $this->appendTemplate('@ElcodiFacebook/Post/share.html.twig', $event, $this->plugin, ['url' => $shareUrl]);
        }
    }