prepareRender(); $relations = []; foreach ($this->bundle->metadata('relations')->all() as $category => $bundles) { foreach ($bundles as $path) { $relations[$category][] = new Bundle($path, $this->bundle->getDisk()); } } data_set($this->viewData, 'relations', $relations); return view('term', $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() === '/termes/'; } protected function handlePagination() { } }