original_string: public function render($data)
      {
          if (isset($data['content'])) {
              $this->config(['content' => $data['content']]);
              $content = new MenuContent($this->config(), $this->_here);
              $group = isset($data['group'])? $data['group'] : null;
              $contents = $content->render($group);
              $this->_active = $this->_active || $content->active();
              $this->config('wrapper.wrapper', $contents);
          }
  
          if ($this->_active) {
              $class = $this->config('wrapper.class') . ' active';
              $this->config('wrapper.class', $class);
          }
  
          return $this->formatTemplate('wrapper', $this->config('wrapper'));
      }
code: public function render($data)
      {
          if (isset($data['content'])) {
              $this->config(['content' => $data['content']]);
              $content = new MenuContent($this->config(), $this->_here);
              $group = isset($data['group'])? $data['group'] : null;
              $contents = $content->render($group);
              $this->_active = $this->_active || $content->active();
              $this->config('wrapper.wrapper', $contents);
          }
  
          if ($this->_active) {
              $class = $this->config('wrapper.class') . ' active';
              $this->config('wrapper.class', $class);
          }
  
          return $this->formatTemplate('wrapper', $this->config('wrapper'));
      }
code_tokens: public function render ( $ data ) { if ( isset ( $ data [ 'content' ] ) ) { $ this -> config ( [ 'content' => $ data [ 'content' ] ] ) ; $ content = new MenuContent ( $ this -> config ( ) , $ this -> _here ) ; $ group = isset ( $ data [ 'group' ] ) ? $ data [ 'group' ] : null ; $ contents = $ content -> render ( $ group ) ; $ this -> _active = $ this -> _active || $ content -> active ( ) ; $ this -> config ( 'wrapper.wrapper' , $ contents ) ; } if ( $ this -> _active ) { $ class = $ this -> config ( 'wrapper.class' ) . ' active' ; $ this -> config ( 'wrapper.class' , $ class ) ; } return $ this -> formatTemplate ( 'wrapper' , $ this -> config ( 'wrapper' ) ) ; }
docstring: Renders the menu wrapper and it's content.
  
  @param array $data options and content of the wrapper
  @return string rendered wrapper
docstring_tokens: Renders the menu wrapper and it s content .