src/Twig/Extension/FMSummernoteExtension.php
private function prepareArrayParameter($name)
    {
        if (isset($this->parameters[$name])) {
            $parameterArray = $this->parameters[$name];
            $count          = count($parameterArray);
            $str            = "['".$parameterArray[0]."'";

            for ($i = 1; $i < $count; ++$i) {
                $str .= ", '".$parameterArray[$i]."'";
            }

            $str .= ']';

            return $str;
        }
    }
private function prepareArrayParameter($name)
    {
        if (isset($this->parameters[$name])) {
            $parameterArray = $this->parameters[$name];
            $count          = count($parameterArray);
            $str            = "['".$parameterArray[0]."'";

            for ($i = 1; $i < $count; ++$i) {
                $str .= ", '".$parameterArray[$i]."'";
            }

            $str .= ']';

            return $str;
        }
    }
private function prepareArrayParameter ( $ name ) { if ( isset ( $ this -> parameters [ $ name ] ) ) { $ parameterArray = $ this -> parameters [ $ name ] ; $ count = count ( $ parameterArray ) ; $ str = "['" . $ parameterArray [ 0 ] . "'" ; for ( $ i = 1 ; $ i < $ count ; ++ $ i ) { $ str .= ", '" . $ parameterArray [ $ i ] . "'" ; } $ str .= ']' ; return $ str ; } }
Return a javascript array.

@var string name
The name of the parameter to look for

@return string
Return a javascript array .