public function asArray($var, $default = [], $filter = null, $forceRaw = false)
    {
        $raw = $this->raw($var, $default, $filter);

        return \Foil\arraize($raw, ($this->autoescape && ! $forceRaw));
    }
public function asArray($var, $default = [], $filter = null, $forceRaw = false)
    {
        $raw = $this->raw($var, $default, $filter);

        return \Foil\arraize($raw, ($this->autoescape && ! $forceRaw));
    }
public function asArray ( $ var , $ default = [ ] , $ filter = null , $ forceRaw = false ) { $ raw = $ this -> raw ( $ var , $ default , $ filter ) ; return \ Foil \ arraize ( $ raw , ( $ this -> autoescape && ! $ forceRaw ) ) ; }
Return a value from template context, optionally set a default and filter.
If autoescape is set to true strings are escaped for html entities.
result is casted to array.

@param  string       $var      Variable name
@param  mixed        $default  Default
@param  string|array $filter   Array or pipe-separated list of filters
@param  boolean      $forceRaw Should use raw variable?
@return mixed
Return a value from template context optionally set a default and filter . If autoescape is set to true strings are escaped for html entities . result is casted to array .