/** * @param int $id * * @return array * @throws \ACP3\Core\Controller\Exception\ResultNotExistsException */ public function execute($id) { if ($this->galleryRepository->galleryExists($id, $this->date->getCurrentDateTime()) === true) { $this->setCacheResponseCacheable($this->config->getSettings(Schema::MODULE_NAME)['cache_lifetime']); $this->breadcrumb->append($this->translator->t('gallery', 'gallery'), 'gallery')->append($this->galleryRepository->getGalleryTitle($id)); return ['pictures' => $this->galleryCache->getCache($id), 'overlay' => (int) $this->settings['overlay']]; } throw new Core\Controller\Exception\ResultNotExistsException(); }