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