prepareRender(); $parts = preg_split('#/#', $this->bundle->getPath(), -1, PREG_SPLIT_NO_EMPTY); $dossierPath = implode('/', [$parts[0], $parts[1]]); $dossier = new Bundle($dossierPath, $this->bundle->getDisk()); data_set($this->viewData, 'showToc', true); data_set($this->viewData, 'dossier', $dossier); return [$this->bundle->getPath() => view('article', $this->viewData)]; } /** * Renders a card HTML view of the bundle, suitable to display in lists */ public function renderCard() { $this->prepareRenderCard(); return view('dossier-card', $this->viewData); } /** * Return a boolean value indicating if this creator in particular can * create bundles for specified section */ public static function handles(Bundle $bundle): bool { return $bundle->getSection() && $bundle->getSection()->getPath() === '/dossiers/'; } protected function handlePagination(int $currentPage = 1) { } protected function collectSubBundles() { return []; } }