/** * Get Album List as JSON */ public function getPlayListList(&$PA, &$fobj, $maxCount = 50) { $this->init($PA); /** @var \Google_Service_YouTube_Playlists_Resource $playLists */ $playLists = $this->youTubeApi->listPlaylists("snippet,contentDetails", $maxCount); $playListsItems = $this->getYouTubePlayListItemList($playLists); $template = GeneralUtility::getFileAbsFileName('EXT:youtube_playlist/Resources/Private/Templates/Backend/FlexForm/PlayListList.html'); $renderer = $this->getFluidRenderer(); $renderer->setTemplatePathAndFilename($template); $renderer->assign('playlists', $playListsItems); $renderer->assign('PA', $PA); $content = $renderer->render(); //$this->extbaseShutdown(); return $content; }