system/View/View.php
public function setData(array $data = [], string $context = null): RendererInterface
	{
		if (! empty($context))
		{
			$data = \esc($data, $context);
		}

		$this->data = array_merge($this->data, $data);

		return $this;
	}
public function setData(array $data = [], string $context = null): RendererInterface
	{
		if (! empty($context))
		{
			$data = \esc($data, $context);
		}

		$this->data = array_merge($this->data, $data);

		return $this;
	}
Sets several pieces of view data at once.

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

@return RendererInterface