system/View/View.php
public function setVar(string $name, $value = null, string $context = null): RendererInterface
	{
		if (! empty($context))
		{
			$value = \esc($value, $context);
		}

		$this->data[$name] = $value;

		return $this;
	}
public function setVar(string $name, $value = null, string $context = null): RendererInterface
	{
		if (! empty($context))
		{
			$value = \esc($value, $context);
		}

		$this->data[$name] = $value;

		return $this;
	}
Sets a single piece of view data.

@param string $name
@param mixed  $value
@param string $context The context to escape it for: html, css, js, url
If null, no escaping will happen

@return RendererInterface