public function renderJavascript(EventInterface $event) { if ($this->plugin->isUsable(['asynchronous'])) { $this->appendTemplate('@ElcodiPinterest/javascript.html.twig', $event, $this->plugin); } }