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;
    }
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;
    }
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 ; }
Process features related to group mode.
@return void
Process features related to group mode .