public function getModulesMap()
    {
        if ($this->_modulesMap === null) {
            $this->_modulesMap = NavItemModule::find()->select(['module_name', 'id'])->indexBy('id')->asArray()->all();
        }
        
        return $this->_modulesMap;
    }
public function getModulesMap()
    {
        if ($this->_modulesMap === null) {
            $this->_modulesMap = NavItemModule::find()->select(['module_name', 'id'])->indexBy('id')->asArray()->all();
        }
        
        return $this->_modulesMap;
    }
public function getModulesMap ( ) { if ( $ this -> _modulesMap === null ) { $ this -> _modulesMap = NavItemModule :: find ( ) -> select ( [ 'module_name' , 'id' ] ) -> indexBy ( 'id' ) -> asArray ( ) -> all ( ) ; } return $ this -> _modulesMap ; }
Return all nav item modules to request data later in items

@return array An array with all modules index by the id
Return all nav item modules to request data later in items