public function renderShareProduct(EventInterface $event)
{
if ($this->plugin->isUsable()) {
/**
* @var Product $product
*/
$product = $event->get('product');
$shareUrl = $this->urlGenerator->generate('store_product_view', ['id' => $product->getId(), 'slug' => $product->getSlug()], true);
$this->appendTemplate('@ElcodiFacebook/Post/share.html.twig', $event, $this->plugin, ['url' => $shareUrl]);
}
}