original_string: protected function processGroupMode()
      {
          $palette = [];
  
          if (!$group = $this->getConfig('groups', [])) {
              $this->useGroups = false;
              return;
          }
  
          if (is_string($group)) {
              $group = $this->makeConfig($group);
          }
  
          foreach ($group as $code => $config) {
              $palette[$code] = [
                  'code' => $code,
                  'name' => array_get($config, 'name'),
                  'icon' => array_get($config, 'icon', 'icon-square-o'),
                  'description' => array_get($config, 'description'),
                  'fields' => array_get($config, 'fields')
              ];
          }
  
          $this->groupDefinitions = $palette;
          $this->useGroups = true;
      }
code: protected function processGroupMode()
      {
          $palette = [];
  
          if (!$group = $this->getConfig('groups', [])) {
              $this->useGroups = false;
              return;
          }
  
          if (is_string($group)) {
              $group = $this->makeConfig($group);
          }
  
          foreach ($group as $code => $config) {
              $palette[$code] = [
                  'code' => $code,
                  'name' => array_get($config, 'name'),
                  'icon' => array_get($config, 'icon', 'icon-square-o'),
                  'description' => array_get($config, 'description'),
                  'fields' => array_get($config, 'fields')
              ];
          }
  
          $this->groupDefinitions = $palette;
          $this->useGroups = true;
      }
code_tokens: protected function processGroupMode ( ) { $ palette = [ ] ; if ( ! $ group = $ this -> getConfig ( 'groups' , [ ] ) ) { $ this -> useGroups = false ; return ; } if ( is_string ( $ group ) ) { $ group = $ this -> makeConfig ( $ group ) ; } foreach ( $ group as $ code => $ config ) { $ palette [ $ code ] = [ 'code' => $ code , 'name' => array_get ( $ config , 'name' ) , 'icon' => array_get ( $ config , 'icon' , 'icon-square-o' ) , 'description' => array_get ( $ config , 'description' ) , 'fields' => array_get ( $ config , 'fields' ) ] ; } $ this -> groupDefinitions = $ palette ; $ this -> useGroups = true ; }
docstring: Process features related to group mode.
  @return void
docstring_tokens: Process features related to group mode .