Symfony\Component\Templating\TemplateReference::get PHP Method

get() public method

Gets a template parameter.
public get ( string $name ) : string
$name string The parameter name
return string The parameter value
    public function get($name)
    {
        if (array_key_exists($name, $this->parameters)) {
            return $this->parameters[$name];
        }

        throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name));
    }