public function variants($withOriginal = false)
    {
        $variants = array_keys($this->config->variantConfigs());

        if ($withOriginal && ! in_array(FileHandler::ORIGINAL, $variants)) {
            array_unshift($variants, FileHandler::ORIGINAL);
        }

        return $variants;
    }
public function variants($withOriginal = false)
    {
        $variants = array_keys($this->config->variantConfigs());

        if ($withOriginal && ! in_array(FileHandler::ORIGINAL, $variants)) {
            array_unshift($variants, FileHandler::ORIGINAL);
        }

        return $variants;
    }
public function variants ( $ withOriginal = false ) { $ variants = array_keys ( $ this -> config -> variantConfigs ( ) ) ; if ( $ withOriginal && ! in_array ( FileHandler :: ORIGINAL , $ variants ) ) { array_unshift ( $ variants , FileHandler :: ORIGINAL ) ; } return $ variants ; }
Returns list of keys for defined variants.

@param bool $withOriginal
@return string[]
Returns list of keys for defined variants .