public function renderPin(EventInterface $event) { if ($this->plugin->isUsable()) { $this->appendTemplate('@ElcodiPinterest/product_pin.html.twig', $event, $this->plugin); } }