private function generateGroups()
    {
        foreach ($this->app['config']->get('contenttypes') as $ctname => $ctype) {
            $keyprefix = 'contenttypes.' . $this->slugifyKey($ctname) . '.group.';

            if (isset($ctype['groups']) && is_array($ctype['groups'])) {
                foreach ($ctype['groups'] as $groupname) {
                    $key = $keyprefix . $this->slugifyKey($groupname);

                    if ($this->isSaved($key)) {
                        $this->translation[$key] = $this->saved[$key];
                    } else {
                        $fallback = $this->fallback($key);
                        $this->hints[$key] = ($fallback !== false) ? $fallback : ucfirst($groupname);
                        $this->translation[$key] = '';
                    }
                }
            }
        }
    }
private function generateGroups()
    {
        foreach ($this->app['config']->get('contenttypes') as $ctname => $ctype) {
            $keyprefix = 'contenttypes.' . $this->slugifyKey($ctname) . '.group.';

            if (isset($ctype['groups']) && is_array($ctype['groups'])) {
                foreach ($ctype['groups'] as $groupname) {
                    $key = $keyprefix . $this->slugifyKey($groupname);

                    if ($this->isSaved($key)) {
                        $this->translation[$key] = $this->saved[$key];
                    } else {
                        $fallback = $this->fallback($key);
                        $this->hints[$key] = ($fallback !== false) ? $fallback : ucfirst($groupname);
                        $this->translation[$key] = '';
                    }
                }
            }
        }
    }
private function generateGroups ( ) { foreach ( $ this -> app [ 'config' ] -> get ( 'contenttypes' ) as $ ctname => $ ctype ) { $ keyprefix = 'contenttypes.' . $ this -> slugifyKey ( $ ctname ) . '.group.' ; if ( isset ( $ ctype [ 'groups' ] ) && is_array ( $ ctype [ 'groups' ] ) ) { foreach ( $ ctype [ 'groups' ] as $ groupname ) { $ key = $ keyprefix . $ this -> slugifyKey ( $ groupname ) ; if ( $ this -> isSaved ( $ key ) ) { $ this -> translation [ $ key ] = $ this -> saved [ $ key ] ; } else { $ fallback = $ this -> fallback ( $ key ) ; $ this -> hints [ $ key ] = ( $ fallback !== false ) ? $ fallback : ucfirst ( $ groupname ) ; $ this -> translation [ $ key ] = '' ; } } } } }
Generates keys for tab group names.
Generates keys for tab group names .