original_string: public function listRender($definition = null)
      {
          if (!count($this->listWidgets)) {
              throw new ApplicationException(Lang::get('backend::lang.list.behavior_not_ready'));
          }
  
          if (!$definition || !isset($this->listDefinitions[$definition])) {
              $definition = $this->primaryDefinition;
          }
  
          $listConfig = $this->controller->listGetConfig($definition);
  
          $vars = [
              'toolbar' => null,
              'filter' => null,
              'list' => null,
          ];
  
          if (isset($this->toolbarWidgets[$definition])) {
              $vars['toolbar'] = $this->toolbarWidgets[$definition];
          }
  
          if (isset($this->filterWidgets[$definition])) {
              $vars['filter'] = $this->filterWidgets[$definition];
          }
  
          $vars['list'] = $this->listWidgets[$definition];
  
          return $this->listMakePartial('container', $vars);
      }
code: public function listRender($definition = null)
      {
          if (!count($this->listWidgets)) {
              throw new ApplicationException(Lang::get('backend::lang.list.behavior_not_ready'));
          }
  
          if (!$definition || !isset($this->listDefinitions[$definition])) {
              $definition = $this->primaryDefinition;
          }
  
          $listConfig = $this->controller->listGetConfig($definition);
  
          $vars = [
              'toolbar' => null,
              'filter' => null,
              'list' => null,
          ];
  
          if (isset($this->toolbarWidgets[$definition])) {
              $vars['toolbar'] = $this->toolbarWidgets[$definition];
          }
  
          if (isset($this->filterWidgets[$definition])) {
              $vars['filter'] = $this->filterWidgets[$definition];
          }
  
          $vars['list'] = $this->listWidgets[$definition];
  
          return $this->listMakePartial('container', $vars);
      }
code_tokens: public function listRender ( $ definition = null ) { if ( ! count ( $ this -> listWidgets ) ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.list.behavior_not_ready' ) ) ; } if ( ! $ definition || ! isset ( $ this -> listDefinitions [ $ definition ] ) ) { $ definition = $ this -> primaryDefinition ; } $ listConfig = $ this -> controller -> listGetConfig ( $ definition ) ; $ vars = [ 'toolbar' => null , 'filter' => null , 'list' => null , ] ; if ( isset ( $ this -> toolbarWidgets [ $ definition ] ) ) { $ vars [ 'toolbar' ] = $ this -> toolbarWidgets [ $ definition ] ; } if ( isset ( $ this -> filterWidgets [ $ definition ] ) ) { $ vars [ 'filter' ] = $ this -> filterWidgets [ $ definition ] ; } $ vars [ 'list' ] = $ this -> listWidgets [ $ definition ] ; return $ this -> listMakePartial ( 'container' , $ vars ) ; }
docstring: Renders the widget collection.
  @param  string $definition Optional list definition.
  @return string Rendered HTML for the list.
docstring_tokens: Renders the widget collection .