/** * DEPRECATION WARNING! This method will be removed in the next major point release * * Append data to view * @param array $data */ public function appendData($data) { if (!is_array($data)) { throw new \InvalidArgumentException('Cannot append view data. Expected array argument.'); } $this->data->replace($data); }