code/models/PlaceableObject_Preset.php
public function getStyles()
    {
        $styles = $this->config()->get('styles');
        $i18nStyles = array();
        if ($styles) {
            foreach ($styles as $key => $label) {
                $i18nStyles[$key] = _t('PlaceableObject_Preset.STYLE'.strtoupper($key), $label);
            }
        }
        return $i18nStyles;
    }
public function getStyles()
    {
        $styles = $this->config()->get('styles');
        $i18nStyles = array();
        if ($styles) {
            foreach ($styles as $key => $label) {
                $i18nStyles[$key] = _t('PlaceableObject_Preset.STYLE'.strtoupper($key), $label);
            }
        }
        return $i18nStyles;
    }
public function getStyles ( ) { $ styles = $ this -> config ( ) -> get ( 'styles' ) ; $ i18nStyles = array ( ) ; if ( $ styles ) { foreach ( $ styles as $ key => $ label ) { $ i18nStyles [ $ key ] = _t ( 'PlaceableObject_Preset.STYLE' . strtoupper ( $ key ) , $ label ) ; } } return $ i18nStyles ; }
Get available template styles from config
@return array
Get available template styles from config