protected function optionsToRaw(array $options)
    {
        $collections = [];

        foreach ($options as $lang => $labels) {
            $finalWithTranslations = [];
            foreach ($labels as $label) {
                if ($label->isPlain) {
                    $collections[$label->value] = $label->text;
                } else {
                    $collections[$label->lang][$label->value] = $label->text;
                }
            }
        }

        $finals = [];

        foreach ($collections as $value => $collection) {
            $finals[$value] = is_array($collection) ? (object) $collection : $collection;
        }

        return (object) $finals;
    }
protected function optionsToRaw(array $options)
    {
        $collections = [];

        foreach ($options as $lang => $labels) {
            $finalWithTranslations = [];
            foreach ($labels as $label) {
                if ($label->isPlain) {
                    $collections[$label->value] = $label->text;
                } else {
                    $collections[$label->lang][$label->value] = $label->text;
                }
            }
        }

        $finals = [];

        foreach ($collections as $value => $collection) {
            $finals[$value] = is_array($collection) ? (object) $collection : $collection;
        }

        return (object) $finals;
    }
protected function optionsToRaw ( array $ options ) { $ collections = [ ] ; foreach ( $ options as $ lang => $ labels ) { $ finalWithTranslations = [ ] ; foreach ( $ labels as $ label ) { if ( $ label -> isPlain ) { $ collections [ $ label -> value ] = $ label -> text ; } else { $ collections [ $ label -> lang ] [ $ label -> value ] = $ label -> text ; } } } $ finals = [ ] ; foreach ( $ collections as $ value => $ collection ) { $ finals [ $ value ] = is_array ( $ collection ) ? ( object ) $ collection : $ collection ; } return ( object ) $ finals ; }
Gets current Options into a raw format.

@return object
Gets current Options into a raw format .