protected function variantExtensions()
    {
        $extensions = $this->config->variantExtensions();

        $variants = $this->variantsAttribute();

        if ( ! empty($variants)) {

            foreach ($this->variants() as $variant) {

                $extension = Arr::get($variants, "{$variant}.ext");

                if ($extension) {
                    $extensions[ $variant ] = $extension;
                    continue;
                }
            }
        }

        return $extensions;
    }
protected function variantExtensions()
    {
        $extensions = $this->config->variantExtensions();

        $variants = $this->variantsAttribute();

        if ( ! empty($variants)) {

            foreach ($this->variants() as $variant) {

                $extension = Arr::get($variants, "{$variant}.ext");

                if ($extension) {
                    $extensions[ $variant ] = $extension;
                    continue;
                }
            }
        }

        return $extensions;
    }
protected function variantExtensions ( ) { $ extensions = $ this -> config -> variantExtensions ( ) ; $ variants = $ this -> variantsAttribute ( ) ; if ( ! empty ( $ variants ) ) { foreach ( $ this -> variants ( ) as $ variant ) { $ extension = Arr :: get ( $ variants , "{$variant}.ext" ) ; if ( $ extension ) { $ extensions [ $ variant ] = $ extension ; continue ; } } } return $ extensions ; }
Returns alternative extensions keyed by variant.

@return string[]
Returns alternative extensions keyed by variant .