src/components/AdminMenuBuilder.php
public function nodeRoute($name, $icon, $route, $searchModelClass = null)
    {
        $this->_pointers['node'] = self::$index;
        $this->_menu[self::$index] = [
            'id' => self::$index,
            'moduleId' => $this->moduleContext->id,
            'template' => $route, // as the template is equal to the route of the node which is loaded
            'routing' => 'custom',
            'alias' => $name,
            'icon' => $icon,
            'permissionRoute' => $route,
            'permissionIsRoute' => true,
            'searchModelClass' => $searchModelClass,
        ];
    
        $this->_permissionRoutes[] = ['route' => $route, 'alias' => $name];
    
        self::$index++;
        return $this;
    }
public function nodeRoute($name, $icon, $route, $searchModelClass = null)
    {
        $this->_pointers['node'] = self::$index;
        $this->_menu[self::$index] = [
            'id' => self::$index,
            'moduleId' => $this->moduleContext->id,
            'template' => $route, // as the template is equal to the route of the node which is loaded
            'routing' => 'custom',
            'alias' => $name,
            'icon' => $icon,
            'permissionRoute' => $route,
            'permissionIsRoute' => true,
            'searchModelClass' => $searchModelClass,
        ];
    
        $this->_permissionRoutes[] = ['route' => $route, 'alias' => $name];
    
        self::$index++;
        return $this;
    }
public function nodeRoute ( $ name , $ icon , $ route , $ searchModelClass = null ) { $ this -> _pointers [ 'node' ] = self :: $ index ; $ this -> _menu [ self :: $ index ] = [ 'id' => self :: $ index , 'moduleId' => $ this -> moduleContext -> id , 'template' => $ route , // as the template is equal to the route of the node which is loaded 'routing' => 'custom' , 'alias' => $ name , 'icon' => $ icon , 'permissionRoute' => $ route , 'permissionIsRoute' => true , 'searchModelClass' => $ searchModelClass , ] ; $ this -> _permissionRoutes [ ] = [ 'route' => $ route , 'alias' => $ name ] ; self :: $ index ++ ; return $ this ; }
A node which is a custom route to open, nodes are the the top menu of the luya administration interfaces.

@param string $name The name of the node, all names will process trough the `Yii::t` function with its module name as prefix.
@param string $icon The icon name based on the google icons font see https://design.google.com/icons/.
@param string $route The route to the template which is going to be render by angular, example `cmsadmin/default/index`.
@param string $searchModelClass The path to the model to search inside the admin global search, must implement the {{luya\admin\base\GenericSearchInterface}}.
@return \luya\admin\components\AdminMenuBuilder
A node which is a custom route to open nodes are the the top menu of the luya administration interfaces .