code: protected function getMain($name = 'default')
      {
          // fire event that can be hooked to add items to the nav bar
          $this->events->fire('navigation.main', [['name' => $name]]);
  
          // check if the name exists in the main array
          if ($name !== 'default' && !array_key_exists($name, $this->main)) {
              // use the default name
              $name = 'default';
          }
  
          if (!array_key_exists($name, $this->main)) {
              // add it if it doesn't exists
              $this->main[$name] = [];
          }
  
          // apply active keys
          $nav = $this->active($this->main[$name]);
  
          // fix up and spit out the nav bar
          return $this->process($nav);
      }
docs: Get the main navigation array.
  
  @param string $name
  
  @return array