src/components/AdminMenuBuilder.php
public function itemRoute($name, $route, $icon, $searchModelClass = null, array $options = [])
    {
        $this->_menu[$this->_pointers['node']]['groups'][$this->_pointers['group']]['items'][] = [
            'alias' => $name,
            'route' => $route,
            'icon' => $icon,
            'permissionApiEndpoint' => null,
            'permissionIsRoute' => true,
            'permissionIsApi' => false,
            'searchModelClass' => $searchModelClass,
            'options' => $this->verifyOptions($options),
        ];
    
        $this->_permissionRoutes[] = ['route' => $route, 'alias' => $name];
    
        return $this;
    }
public function itemRoute($name, $route, $icon, $searchModelClass = null, array $options = [])
    {
        $this->_menu[$this->_pointers['node']]['groups'][$this->_pointers['group']]['items'][] = [
            'alias' => $name,
            'route' => $route,
            'icon' => $icon,
            'permissionApiEndpoint' => null,
            'permissionIsRoute' => true,
            'permissionIsApi' => false,
            'searchModelClass' => $searchModelClass,
            'options' => $this->verifyOptions($options),
        ];
    
        $this->_permissionRoutes[] = ['route' => $route, 'alias' => $name];
    
        return $this;
    }
public function itemRoute ( $ name , $ route , $ icon , $ searchModelClass = null , array $ options = [ ] ) { $ this -> _menu [ $ this -> _pointers [ 'node' ] ] [ 'groups' ] [ $ this -> _pointers [ 'group' ] ] [ 'items' ] [ ] = [ 'alias' => $ name , 'route' => $ route , 'icon' => $ icon , 'permissionApiEndpoint' => null , 'permissionIsRoute' => true , 'permissionIsApi' => false , 'searchModelClass' => $ searchModelClass , 'options' => $ this -> verifyOptions ( $ options ) , ] ; $ this -> _permissionRoutes [ ] = [ 'route' => $ route , 'alias' => $ name ] ; return $ this ; }
Add an item to a group. Route items opens a angular view.

@param string $name The name of the Api (displayed as menu point in the left navigation), all names run through the `Yii::t()` method prefixed with the module id.
@param string $route The route to the template `cmsadmin/permission/index`.
@param string $icon The icon name based on the google icons font see https://design.google.com/icons/.
@param string $searchModelClass The search model must implement the {{luya\admin\base\GenericSearchInterface}}.
@param array $options An array with options you can provided and read inside the admin menu component. See {{\luya\admin\components\AdminMenuBuilder::verifyOptions}} for detail list and informations.
@return \luya\admin\components\AdminMenuBuilder
Add an item to a group . Route items opens a angular view .