app/Place.php
public function url(): string
    {
        //find a module providing the place hierarchy
        $module = app(ModuleService::class)
            ->findByComponent(ModuleListInterface::class, $this->tree, Auth::user())
            ->first(static function (ModuleInterface $module): bool {
                return $module instanceof PlaceHierarchyListModule;
            });
        
        if ($module instanceof PlaceHierarchyListModule) {
            return $module->listUrl($this->tree, [
                'parent' => $this->parts->reverse()->all(),
                'ged'    => $this->tree->name(),
            ]);
        }

        // The place-list module is disabled...
        return '#';
    }
public function url(): string
    {
        //find a module providing the place hierarchy
        $module = app(ModuleService::class)
            ->findByComponent(ModuleListInterface::class, $this->tree, Auth::user())
            ->first(static function (ModuleInterface $module): bool {
                return $module instanceof PlaceHierarchyListModule;
            });
        
        if ($module instanceof PlaceHierarchyListModule) {
            return $module->listUrl($this->tree, [
                'parent' => $this->parts->reverse()->all(),
                'ged'    => $this->tree->name(),
            ]);
        }

        // The place-list module is disabled...
        return '#';
    }
public function url ( ) : string { //find a module providing the place hierarchy $ module = app ( ModuleService :: class ) -> findByComponent ( ModuleListInterface :: class , $ this -> tree , Auth :: user ( ) ) -> first ( static function ( ModuleInterface $ module ) : bool { return $ module instanceof PlaceHierarchyListModule ; } ) ; if ( $ module instanceof PlaceHierarchyListModule ) { return $ module -> listUrl ( $ this -> tree , [ 'parent' => $ this -> parts -> reverse ( ) -> all ( ) , 'ged' => $ this -> tree -> name ( ) , ] ) ; } // The place-list module is disabled... return '#' ; }
Create a URL to the place-hierarchy page.

@return string
Create a URL to the place - hierarchy page .