public function parseNewsArticlesHook($objTemplate, $arrNews, $objModule)
 {
     if (!$arrNews['addYouTube']) {
         return;
     }
     $objConfig = YouTubeSettings::getInstance()->setModule($objModule->getModel());
     YouTubeVideo::getInstance()->setData($objTemplate->getData())->setConfig($objConfig)->addToTemplate($objTemplate);
 }
 protected function compile()
 {
     if (TL_MODE == 'FE') {
         $this->Template = new \FrontendTemplate($this->strTemplate);
         $this->Template->setData($this->arrData);
         $objConfig = YouTubeSettings::getInstance()->setModule($this->objModel);
         YouTubeVideo::getInstance()->setData($this->arrData)->setConfig($objConfig)->addToTemplate($this->Template);
     } else {
         $this->strTemplate = 'be_wildcard';
         $this->Template = new \BackendTemplate($this->strTemplate);
         $this->Template->title = 'YouTube-Video ' . $this->youtube;
     }
 }